#include <iostream>
#include <ctime>
using namespace std;
int main()
{
cout<<"load:the first"<<'\t'<<"the second"<<'\t'<<"the third"<<'\t'<<"the forth"<<endl;
int a[4];
char c;
while(cin.get(c) && c != 'q')//按回车进行新一轮的输出,按q退出
{
srand(time(NULL));
for(int i = 0;i < 4;i++)
{
a[i] = rand()%101;
cout<<'\t'<<a[i]<<'\t';
}
cout<<"\nthe new round"<<endl;
}
return 0;
}
看看吧