大整数加法怎么写.c语言
大整数加法怎么写.c语言
日期:2019-02-15 21:19:48 人气:1
/*目标:实现任意位数(1000位以内)的两个大正整数的加法*/#include #include #include #define MAXSIZE 1000int Max(int a, int b){ return a > b ? a : b;}int main(){ char str1[MAXSIZE], str2[MAXSIZE]; int n1[MAXSIZE] = { 0 }, n2[MAXSIZE] = { 0 }, sum[MAXSIZE] = { 0