|字号 订阅
_ttoi: 例:
double a;
CString str;
a = _ttoi(str); //取整
a = _tstof(str); //保留小数位
str.Format(_T("%g"),a); %g省略末尾0;
|字号 订阅
_ttoi: 例:
double a;
CString str;
a = _ttoi(str); //取整
a = _tstof(str); //保留小数位
str.Format(_T("%g"),a); %g省略末尾0;
上一篇:CString截取字符串全攻略
MFC的颜色选择器
CString::Format// 看代码,针对format带参数列表的情况没整明白,于是开始百度,搜
1、2、3、4、
CString::Compare int Compare( LPCTSTR lpsz ) const;返回值 字符串一样 返回0 小于lpsz 返回 -1 大于lpsz 返回1 区分大小字
CString使用的是引用技术,可以共享数据(这个大家都知道),另外空的CStirng是使用长度 int nAllocLength; //分配
1. CString作为参数传递MFC编程中,CString可以直接作为SendMessage()参数来传递。推荐用阻塞方式发送消息,这样能防
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M