// 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)
最新推荐文章于 2023-10-15 23:18:19 发布