atoi()函数名: atoi头文件:<stdlib.>功 能:把字符串转换成整型数,atoi()会扫描参数string字符串,跳过前面的空格字符串,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串‘\0’时才结束转换,并将结果返回,返回转换后的整型数。用法:int atoi(const char *str)类似的有:1.double atof(const char *str)2.long int atol(const char *str)3.