A
Alan
How do I convert the type const char* to type char*?
I have an input string ("input_string") of class string. I need
to convert this to type char* in order to use it in a call to the
strtok() function. However, the .c_str() string class function
returns type const char*.
The relevant code may be found below. My compiler returns the
error "invalid conversion from `const char*' to `char*'".
Thanks, Alan
I have an input string ("input_string") of class string. I need
to convert this to type char* in order to use it in a call to the
strtok() function. However, the .c_str() string class function
returns type const char*.
The relevant code may be found below. My compiler returns the
error "invalid conversion from `const char*' to `char*'".
Thanks, Alan