+ 1
String const-ness!!!!
The following code returns a const char*,is it possible to remove the cost-ness,can i use const cast in this case, the receiver could be a char[] or a normal char.. string word="Hello world"; someMethod(word.c_str());
1 Answer
+ 1
You can copy the string into new array
http://www.cplusplus.com/reference/cstring/strcpy/