int转成CString用什么函数? int转成CString用什么函数? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 int i=3523;CString str;str.Fromat("%d",i); //int类型向CString转换CString IntToStr(int nVal){ CString strRet; char buff[10]; itoa(nVal, buff, 10); strRet = buff; return strRet;} int i=10;CString str;str.Format("%d",i);这时字符str就是"10".或者用sprintf()也可实现。 int i=10;CString str;str.Format("%d",i);没错 我这个编译连接没有问题,当运行时出错(高手来吧) 请教大家一个关于CFile类的问题?????????????? 求助debug成功release失败 成员列表提示信息没了怎么办? 关于响应大规模连接的问题. 如何得到当前进程的父进程? 如何开发 DLL,给一例子。 需要一个文件,分都给给我的第一个人。 串口连接 请问哪里有能下载超星3.61版书的软件 请问:如何在控件的各个属性页面之间进行数据传递?(mfc,activeX) vc中属性页之间不能传递参数变量,谁知道参数传递的方法?
CString str;
str.Fromat("%d",i);
CString IntToStr(int nVal)
{
CString strRet;
char buff[10];
itoa(nVal, buff, 10);
strRet = buff;
return strRet;
}
CString str;
str.Format("%d",i);
这时字符str就是"10".
或者用sprintf()也可实现。
CString str;
str.Format("%d",i);
没错