【串转数】字符串格式转化为整型数字 实现从串到数 代码 #include <cstdlib> using namespace std; int main(){ char s[] = "13579"; int int_num = atoi(s); long long LL_num = atoll(s); double double_num = atof(s); }