#include <iostream>
using namespace std;
int main()
{/// 字符串处理,
string str="143545,dfdf";
char* mybuf="ddd 234";
char mys[33];
short myi;
//sscanf(mybuf,"%[^ ] %d",&mys,&myi);// 这一句 vs竟然能正常运行,gcc 会判断出错误
int i=str.find(",");
sscanf(mybuf,"%[^ ] %hd",mys,&myi);
string str2=str.substr(0,i);
printf("%s /n %s ",str.c_str(),str2.c_str());
int iProviceId=atoi(str2.c_str());
char aa[4]="aa";
char bb[5]="bb";
//char cc[22]=aa;//+bb;
return 0;
}