在VC6.0下,把#include <stdlib.h>、#include <stdio.h>两个文件包括进去后,下面这段代码一点问题没有, CString str1,str2; str1="123"; str2="123.4"; int i; float j; i=atoi(str1); j=atof(str2); 但是在EVC3.0里面,却出现了问题:提示atof没有定义,atoi也不能正常转化。
用wcstoi,wcstof, wcstol和wcstod