大数运算(加减乘除)
摘要:
加法void add(char a[],char b[],char d[]){ char c[10001]; int lena=strlen(a),lenb=strlen(b); int i,j,len; len=lena>lenb?lena:lenb; len++; c[0]='\0'; for(i=1;i57) { c[i]-=10; c[i+1]++; } } for(i=len;i>1;i--) if(c[i]==48) le... 阅读全文
posted @ 2013-07-30 19:09 Chiryen 阅读(671) 评论(0) 推荐(0) 编辑