[转载]C++ CString与int 互转

1.CString 转 int   
   
CString strtemp = "100";  
  
int  intResult;  
  
intResult= atoi(strtemp);  
  
-----------------------------------------------------------------  
  
2 int 转 CString   
  
   
CString strtemp;  
  
int i = 2334;     
strtemp.Format("%d",i); 

posted on 2014-10-03 11:40  iackjee  阅读(521)  评论(0编辑  收藏  举报

导航