如:int a = 5;CString b;b.Format("%d",a);补充:如果a是double,或a是float的就是:b.Format("%f",a);反过来字符串转为int:a = atoi(b);如果是double,floata = atof(b);