转换为CString
CString a, b, c;
c = a + b;
使用Format方法方便的实现int、float和double等数字类型转换为CString字符串。
%c 单个字符 |
int s = 123;
CString str;
str.Format(_T("%d"), s);
CString str;
double num=1.46;
//str="1.46"
str.Format(_T("%lf"),num);
【转载自】
CString与double互相转化 - BeanGo的博客 - CSDN博客 https://blog.csdn.net/BeanGo/article/details/91042909
c++ MFC int 转换成 CString - imxiangzi的专栏 - CSDN博客 https://blog.csdn.net/imxiangzi/article/details/37969353
ζั͡ޓއ genji - 至此只为原地流浪.......