enjoy a slife.
just a corner of my life.
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
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment