摘要:
基本步骤:输入字符串—>转化为int数组—>数组相乘。#include #include #include //将字符转换为intint chartoint(char a){return a-'0';}//将int转换为字符/* char inttochar(int i){return i+'0';} */void stoi(char s[],int len,int out_int[]){for(int k=0;k=0&&chartoint(s[k])<=9){out_int[k] = chartoint(s[k]);}else 阅读全文