CString to int

CString to int 

CString str = _T("123");

int i = _ttoi(str);

 int to CString 

int i = 123;

CString str ;

str.Format(_T("%d"), i);

posted @ 2022-03-12 22:05  xiaomodecnblogs  阅读(30)  评论(0)    收藏  举报