Monday, December 26, 2011

C++: "string" to C char*

Apparently there's a built in function for the c++ std::string type:
c_str()


Why does it come up? Things like ifstream are initialized with char* file names, not std::string.

No comments:

Post a Comment