Problem 1002 用c语言怎么获得数据,暂停不了

zhong015 | 2015-05-21 11:29:59Author
int alltext[20004]; int dd=0; scanf("%d",&dd); long i=0,ss=0; while (dd!='\0') { alltext[i]=dd; i++; scanf("%d",&dd); }
zhong015 | 2015-05-21 11:34:04# 1
这样
int alltext[20004]; int dd=0; scanf("%d",&dd); long i=0,ss=0; while (1) { alltext[i]=dd; i++; scanf("%d",&dd); char c; scanf("%c",&c); if (c=='\0') { break; } }