#include <iostream>
using namespace std;
int main()
{
int temp=0;
int count=0;
int m[6][6];
do
{
if(count==0)
cout<<"input an integer number:";
else cout<<"incorrect,input a new number:";
cin>>temp;
for (int i=0; i<6; ++i)
for(int j=0; j<6; ++j)
{
m[i][j]=temp;
}
++count;
} while (temp!=1);
for (int i=0; i<6; ++i)
for(int j=0; j<6; ++j)
{
cout<<m[i][j]<<endl;
}
return 0;
}
看看这个行否