初次结识C++使用的最多的就是数据类型转换的问题:
int i = atoi((LPCTSTR)CString);
CString str="100";
int n=atoi(str.GetBuffer(str.GetLength()));
int i;
CString strNum="1002020";
sscanf( strNum.GetBuffer(strNum.GetLength()),"%d", &i );
初次结识C++使用的最多的就是数据类型转换的问题:
int i = atoi((LPCTSTR)CString);
CString str="100";
int n=atoi(str.GetBuffer(str.GetLength()));
int i;
CString strNum="1002020";
sscanf( strNum.GetBuffer(strNum.GetLength()),"%d", &i );