1、高精度加减法#include void jia(char A,char B); void jian(char A,char B); int m1000,p; void main() char A1201200,B2401200,C122; int n,i,k,q,l; for(i=0;i-1;l+) if(Ail=+) Ci=+;q=q+50;k=0;goto s; if(Ail=-) Ci=-;q=q+50;k=0;goto s; if(Ail=0) break; Bqk=Ail; k+; s:; for(p=0;p-1;i+) if(Bpi-1;i+) if(Bp+50i-1;i-) zh
2、i1=Ai; zhi2=Bi+cha2; q=q+1; yushuq=(zhi1+zhi2-96)%10+jinweiq-1; jinweiq=(zhi1+zhi2-96)/10; if(yushuq=10) jinweiq=1; Cmp+50-mp+i=yushuq+48; if(Cmp+50-mp+i=58) Cmp+50-mp+i=48; else if(cha10) for(i=mp+50-1;i-1;i-) zhi1=Bi; zhi2=Ai+cha1; q=q+1; yushuq=(zhi1+zhi2-96)%10+jinweiq-1; jinweiq=(zhi1+zhi2-96)/
3、10; if(yushuq=10) jinweiq=1; Cmp-mp+50+i=yushuq+48; if(Cmp-mp+50+i=58) Cmp-mp+50+i=48; if(cha10) for(i=cha1-1;i-1;i-) q+;Ci=Ai+jinweiq-1;if(Ci57) Ci=Ci-10;jinweiq=1; else jinweiq=0; if(cha1-1;i-) q+;Ci=Bi+jinweiq-1;if(Ci57) Ci=Ci-10;jinweiq=1; else jinweiq=0; if(cha10i+) if(Ci-1;i+) if(CiBi) r=-1;br
4、eak; else if(cha1-1;i-) zhi1=Pi+cha1; zhi2=Bi; if(zhi1-1;l+) if(Pi+cha1-l!=48) Pi+cha1-l=Pi+cha1-l-1; break; Pi+cha1-l=9; cha=zhi1-zhi2+10; else cha=zhi1-zhi2; Ccha1+i=cha+48; for(i=cha1-1;i-1;i-) Ci=Pi; if(r=1) printf(“-“); for(i=0;i(mp+50mp?mp:mp+50);i+) if(Ci=48) if(i=0) goto i; else for(j=1;j=i;j+) if(Ci-j!=48) goto m; goto i; m:printf(“%c“,Ci); i:; if(r=-1) for(i=0;i(mp+50mp?mp:mp+50);i+) if(Ci=48) if(i=0) goto s; else for(j=1;j=i;j+) if(Ci-j!=48) goto l; goto s; l:printf(“%c“,Ci); s:; k:printf(“n“);