String class for gcc [closed]
I want a string class in gcc, like in Visual studio
Use std::string.
If you really need it, there are CString
workalikes out there. But you really should use std::string
.
I don't know which string class you used in Visual Studio, still the usual std::string
is standard C++ and is available in any standard-conforming C++ implementation (including g++ as well as Microsoft Visual C++).
精彩评论