‘123’的字串怎样得到123?
热心网友
CString temp;int i;strcpy(temp,"123");i=atoi(temp);; //atoi()函数把字符串转换为int整型 //当然长整型l = atol(temp);浮点(double) d = atof(temp);
‘123’的字串怎样得到123?
CString temp;int i;strcpy(temp,"123");i=atoi(temp);; //atoi()函数把字符串转换为int整型 //当然长整型l = atol(temp);浮点(double) d = atof(temp);