c++ int转字符串 char转字符串

代码
第一种
int a = 111;
char b[20];
itoa(a,b,
10);

xxx.SetWindowText(CString(b));  

第二种
int a = 111;
TCHAR b[
20]={0};
_itot(a,b,
10);

xxx.SetWindowText(b); 

第三种
CString str;
str.Format(_T(
"%d"), a);
SetWindowText(str);

 

posted on 2010-06-15 11:33  seaven  阅读(698)  评论(0编辑  收藏  举报

导航