atoi()函数(char类型字符串转int)

int atoi(const char *str) 描述 C 库函数 int atoi(const char *str) 把参数 str 所指向的字符串转换为一个整数(类型为 int 型)。html 参数 str -- 要转换为整数的字符串。函数 返回值 成功时,该函数返回转换后的整数做为int值。 若是转换后的值超出a的可表示值范围int,则会致使未定义的行为。若没法进行转换,则返回 0。spa
相关文章
相关标签/搜索