Top "Cstring" questions

A string in the programming language C is represented as a sequence of characters followed by a null terminator (represented as \0).

How sprintf works with CString and std::string

CString s = "test"; std::string ss = "test"; char z[100]; sprintf(z, "%s", ss.c_str()); // z = "test" : OK char z2[100]; …

c++ visual-c++ visual-studio-2008 mfc cstring