📜  std string to const char * c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:52.092000             🧑  作者: Mango

代码示例1
std::string a = "string";
const char* b = a.c_str();