#include#include int main() { CString str = "Hello"; char c = '!'; str.Append(c); std::cout << str; // Output: Hello! return 0; }
#includeThe CString Append method is part of the MFC (Microsoft Foundation Class) library.#include int main() { CString str = "Hello"; CString str2 = " World"; str.Append(str2); std::cout << str; // Output: Hello World return 0; }