error: invalid conversion from ‘const char*’ to ‘char*’
the complete solution to this very common error
Trying to convert from std::string to char*
Example Code:
char* message = NULL;
message = std::string("blah blah").c_str();
char* message = NULL;
message = std::string("blah blah").c_str();
Everything connected with Tech & Code. Follow to join our 900K+ monthly readers