1.Cstring转int int count; CString str="1";count= _wtoi(str);//还有其他方法atoi, _atoi_l, _wtoi, _wtoi_l 转载于:https://www.cnblogs.com/fuge/p/3195614.html