返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {   
  6.     int a[4];
  7.     srand(time(NULL));
  8.     for(int i=0;i<=20;i++)
  9.     {   
  10.          for(int j=0;j<=3;j++)
  11.          {   
  12.              a[j]=rand()%10;
  13.              cout<<a[j];  
  14.          }
  15.          cout<<endl;
  16.          _sleep(500);
  17.     }
  18.     system("pause");
  19.     return 0;
  20. }
複製代碼

TOP

返回列表