摘要:
使用字符串来模拟实现两个大整数的乘法!void maxIM(char *num1, int x1, char *num2, int x2){ char *re = (char *)malloc(x1+x2); char *an1 = (char *)malloc(x1 ); char *an2 = (char *)malloc(x2 ); memset(re, 0, x1+x2); memset(an1, 0, x1); memset(an2, 0, x2); int m=0; for(int i = x1 - 1; i>=0; i--) an1[m++] = num1[i] - 阅读全文
posted @ 2011-05-14 00:03
安静的思考
阅读(188)
评论(0)
推荐(0)
浙公网安备 33010602011771号