从string 到 const char*的转换:
参考:https://stackoverflow.com/questions/7352099/stdstring-to-char
std::string str = "string";
const char *cstr = str.c_str();
从string 到 char* 的转换:
参考:https://stackoverflow.com/questions/7352099/stdstring-to-char
std::string str = "string";