int to string :
int index=0;
CString str;
str.Format(_T("%d"),index);// str 为 0
str.Format(_T("%02d"),index); // str 为 00
string to int :
CString str = _T("00");
int index;
swscanf(str,_T("%d"),&index);
相关文章:
-
2021-10-22
-
2021-12-24
-
2022-12-23
-
2022-03-05
-
2022-02-27
-
2021-07-09
-
2022-12-23
猜你喜欢
-
2022-12-23
-
2021-07-05
-
2021-12-24
-
2021-08-31
-
2021-07-16
相关资源
-
下载
2023-04-02
-
下载
2023-02-22
-
下载
2021-11-02
-
下载
2023-01-16