CString str = "Hello World";
CString str = "This is a test string."; int len = str.GetLength();
CString str1 = "Hello"; CString str2 = " World"; CString result = str1 + str2;
CString str = "Hello World"; const char* cstr = str.GetString();
CString str1 = "Hello"; CString str2 = "World"; int result = str1.Compare(str2);Overall, CString provides a convenient and versatile way to handle strings in C++, especially in the context of Windows programming using the MFC library.