atoi和itoa这两个函数头文件均为<stdlib.h>
atoi
atoi全称:array to int,可以把字符串转换为整型
int atoi(const char *nptr);
使用演示:
#1
char str[5];
cin>>str;
int aatoi(str);#2
int a;
aatoi("123");//a…
🌷🍁 博主猫头虎(🐅🐾)带您 Go to New World✨🍁 🦄 博客首页——🐅🐾猫头虎的博客🎐 🐳 《面试题大全专栏》 🦕 文章图文…