📜  c++ string to char array - C++ 代码示例

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

代码示例3
const char *array = tmp.c_str(); //For const char array
char *array = &tmp[0]; // If you need to modify the array