CString::Format("%d",xx);其中xx不能为双精度,不然会转化错误,应该使用CString::Format("%d",(LONG)xx);
例:
DOUBLE d = 22.443;
CString str;
str.Format("%d", d);转化后的str = "1924145349",这是错误的。
栏目列表
![]() |
|
---|---|
保持登录 | 忘记密码? |
账号与武进教师培训平台同步 | |