//赋值
CString s;
s.Format(_T("%d"),1);
s.Format(_T("%f"),1.00000);
s.Format(_T("%1f"),1.0000000000);
s = "chenlu520一生一世";
//追加
CString s,a,b;
s = a+b;
//比较
CString a,b;
a.Compare(b)==0;//相等
//获取长度
CString a;
a.GetLength();
【框架-MFC】字符串CString:操作
最新推荐文章于 2022-12-25 15:37:09 发布