string line;
char* str;//char指针
str = strdup (line.c_str());//string转换char*
c++ string 转 char*
最新推荐文章于 2022-11-27 23:13:12 发布
string line;
char* str;//char指针
str = strdup (line.c_str());//string转换char*