/*
*Copyright (c)2014,烟台大学计算机与控制工程学院
*All rights reserved.
*文件名称:n_.cpp
*作 者:战九州
*完成日期:2014年11月20日
*版 本 号:v1.0
*
*问题描述:数组大折腾
*/
#include <iostream>
using namespace std;
const int size=20;
int main()
{
int a[20]= {12,23,34,45,56,67,78,89,90,100};
int x,y;
cout<<"输入后十个元素的值:"<<endl;
for(x=10; x<size; ++x)
{
cin>>a[x];
}
cout<<"由前往后,数组中的值是:"<<endl;
for(y=0; y<size; ++y)
{
if(y%5==0)
cout<<endl;
cout<<a[y]<<" ";
}
return 0;
}