#include#include int main() { std::string str = "Hello world!"; std::cout << str << std::endl; return 0; }
#includeThe package library for String is part of the Standard Template Library (STL). The package library for CString is part of the Microsoft Foundation Class (MFC) library.int main() { CString str = "Hello world!"; wprintf(L"%s\n", (LPCTSTR)str); return 0; }