// Project MFCString // File MFCString.cpp #include #include int main() { CString x = "dog"; CString y, z; y = "cat"; z = x + y; cout << x << " " << y << " " << z << endl; char a[] = "horse"; CString b("cow"), c; c = a; cout << a << " " << b << " " << c << endl; int n = 45; float f = 7.5343F; CString g; g.Format("n = %d; f = %5.2f", n, f); cout << g << endl; z.MakeUpper(); cout << z << endl; return EXIT_SUCCESS; }