int转cstring
cstring str;
int a=1;
str.Format("%d",a);
float /double 转cstring
cstring str;
float a=1.1;
str.Format("%f",b);
double b=2.22;
str.Format("%.2lf",c)// .2 表示小数点后两位.如果想使用小数点后一位就用.1,以此类推,float相同
cstring转int / float
int a;
cstring str="1234";
a=_ttoi(str);
float b;
b=_ttof(str);