convert basic_string char to const char* code example Example: const char to string const char * s = "hello"; std::string str(s);