求教我写的大数a+b哪块有问题?
http://acm.hdu.#include <stdio.h>
#include <string.h>
int main()
{
int i,n,j,t,xt,zt;
char z[10000],x[10000],v[10000]={0};
char a;
scanf("%d",&n);
j=1;
while(n--)
{
scanf("%s%s",z,x);
zt=strlen(z);
xt=strlen(x);
printf("Case %d:\n",j++);
printf("%s + %s = ",z,x);
for(i=0;i<zt/2;i++){a=z[i];z[i]=z[zt-1-i];z[zt-1-i]=a;}
for(i=0;i<xt/2;i++){a=x[i];x[i]=x[xt-1-i];x[xt-1-i]=a;}
for(i=0;i<zt;i++){z[i]-='0';}
for(i=0;i<xt;i++){x[i]-='0';}
if(zt>xt)
t=zt;
else
t=xt;
for(i=0;i<t;i++)
{
v[i]+=z[i]+x[i];
if(v[i]>=10)
{v[i]=v[i]%10;v[i+1]++;}
}
if(v[t]!=0)
{t=t+1;}
for(i=t-1;i>=0;i--)
{ printf("%d",v[i]);v[i]=0;}
printf("\n");
}
return 0;
}