while (scanf("%d",&n)!=EOF)
2012-10-07 19:58
405 查看
// scanEOF.cpp : Defines the entry point for the console application. // #include "stdafx.h" int main() { int n; int array[25]; while (scanf("%d",&n)!=EOF) { for (int i=0; i<n; i++) scanf("%d",array+i); for ( i=0; i<n; i++) printf ("%d ",array[i]); } printf ("EOF:%d \n",EOF); return 0; } /* ^Z EOF:-1 Press any key to continue */
相关文章推荐
- 由while(scanf("%d",&n)!=EOF)引出的小问题
- ACM之while(scanf("%d",&n)!=EOF)
- 选择排序---while( scanf("%d",&n)!= EOF)与getchar()简介及其存在的问题,
- while(scanf("%d",&x) != EOF)的退出方法
- while(~scanf("%d %d",&a,&b))和while(scanf("%d %d",&a,&b)!=EOF)
- while(scanf("%d",&n)!=EOF) ——那件小事
- while(scanf("%d",&n)!=EOF)
- while(scanf("%d",&n)!=EOF)与while(cin>>n)
- while (scanf("%d", &i) != EOF)
- while(scanf("%d",&n)!=EOF)如何在控制台终止循环输入
- while(scanf("%d",&n)!=EOF)
- Python 实现C语言 while(scanf("%d%d", &a, &b) != EOF) 语句功能
- ACM之while(scanf("%d",&n)!=EOF)
- while(scanf("%d",&n)!=EOF)
- while(scanf("%d",&n),n)和while(scanf("%d",&n)!=EOF)和while(scanf("%d",&n)==1)和while(~scanf("%d",&n)
- while(~scanf("%d %d",&a,&b))和while(scanf("%d %d",&a,&b)!=EOF)
- while(scanf("%d",&n)!=EOF)
- 由while(scanf("%d",&n)!=EOF)引出的小问题
- scanf("%d",&m)!=EOF的意义
- 寒假水60——小知识【 while(~scanf("%d",&n))】