- #include<iostream>
- #include<ctime>
- using namespace std;
- int main()
- {
-
- string f[]={"sTEAK","bURgER","pAsTA","RaVIOlI","tURD","wATeR","WiLD tOMATO"};
- srand(time(NULL));
- re:
- system("cls");
- cout<<"☆★☆Da mEaL rANdOMIZER☆★☆"<<endl;
- cout<<"What's the meal of the day?"<<endl<<endl;
- system("pause");
-
- for(int i=1;i<=100;i++)
- {
- if(i%2==0){
- cout<<"☆★☆Processing...☆★☆"<<endl;
- }
- else{
- cout<<"★☆★Processing...★☆★"<<endl;
- }
-
- cout<<f[rand()%7]<<"!"<<endl;
- _sleep(100);
- system("cls");
- }
- cout<<"Meal of the day: "<<f[rand()%7]<<endl;
-
- system("pause");
- goto re;
- return 0;
- }
複製代碼 |