c++中char转换为string类型
https://blog.csdn.net/potxxx/article/details/87290812
string 转 char*
char c[20];
string s="1234";
strcpy(c,s.c_str());
string转int
string s = "1234";
atoi(s.c_str());
c++中char转换为string类型
https://blog.csdn.net/potxxx/article/details/87290812
string 转 char*
char c[20];
string s="1234";
strcpy(c,s.c_str());
string转int
string s = "1234";
atoi(s.c_str());