有人能告诉我这错哪儿了吗?刚学c语言的.......
#include<stdio.h>int main()
{
int k,repeat,j;
char a[999];
scanf("%d",&repeat);
for(j=1;j<=repeat;j++)
{
k=0;
scanf("%s",&a[k]);
while(a[k]!='\n')
{
if(a[k]>='0' && a[k]<='9')
printf("%d\t",a[k]-'0');
k++;
}
printf("\n");
}
return 0;
}