返回列表 發帖
  1. #include<iostream>
  2. #include<ctime>
  3. using namespace std;
  4. int main()
  5. {

  6. string f[]={"sTEAK","bURgER","pAsTA","RaVIOlI","tURD","wATeR","WiLD tOMATO"};
  7. srand(time(NULL));
  8. re:
  9.                    system("cls");
  10.                    cout<<"☆★☆Da mEaL rANdOMIZER☆★☆"<<endl;
  11.                    cout<<"What's the meal of the day?"<<endl<<endl;
  12.                    system("pause");
  13.                   
  14. for(int i=1;i<=100;i++)
  15. {
  16.          if(i%2==0){
  17.          cout<<"☆★☆Processing...☆★☆"<<endl;
  18.          }
  19.          else{
  20.          cout<<"★☆★Processing...★☆★"<<endl;
  21.          }
  22.          
  23.          cout<<f[rand()%7]<<"!"<<endl;
  24.          _sleep(100);
  25.          system("cls");
  26.          }
  27.          cout<<"Meal of the day: "<<f[rand()%7]<<endl;
  28.                      
  29. system("pause");
  30. goto re;
  31. return 0;
  32. }
複製代碼

TOP

返回列表