输入数据结束想退出循环时拍入组合键Ctrl-Z 就是EOF. int item[100]; int i,n; i=0; while(scanf("%d",&item[i])!=EOF) { i++;} n=i; printf("I have read:\n"); ...
確定! 回上一頁