/*
*Copyright (c) 2014,烟台大学计算机学院
*All gight reserved.
*文件名称:temp.cpp
*作者:曾晓
*完成时间:2014年11月26日
*版本号:v1.0
*/
#include <iostream>
using namespace std;
int main()
{
int i,j;
int a[5][4]={{0,1},{4,5},{8,9},{12,13},{16,17}};
cout<<"请输入10个整数:"<<endl;
for(i=0;i<5;i++)
for(j=2;j<4;j++)
{
cin>>a[i][j];
}
cout<<"数组中的值为:"<<endl;
for(i=0;i<5;i++)
for(j=0;j<4;j++)
cout<<a[i][j]<<" ";
return 0;
}
运行结果: