30 Jan
2012
30 Jan
'12
2:05 p.m.
2012/1/30 Claude
Ok. I could use strcpy() to copy the .c_str() result in my char array?
You could, although it's usually better to keep std::string and let it care about memory management. When you need to pass const char* to a C function (e.g., puts), use c_str(). Roman Perepelitsa.