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);



















我的WebBlog
静可观人,虚能修己,贤当述古,智者察今
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);
博客园 © 2004-2026
浙公网安备 33010602011771号
浙ICP备2021040463号-3
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。