string::c_str - C++ Reference - cplusplus.com - The C++ Resources Network
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 // strings and c-strings #include #include #include int main () { std::string str ("Please split this sentence into tokens"); char * cstr = new char [str.length()+1]; std ......