- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- int a=0,b=0,c=0,d=0,e=0,f=0,r;
- apple:
- system("cls");
- cout<<"ㄤㄤ賽兔場"<<endl;
- cout<<"-----------------------------------------------------------|終點恩恩"<<endl;
- cout<<"☆吃康兔"<<endl;
- cout<<"★師機兔"<<endl;
- cout<<"◇雌七兔"<<endl;
- cout<<"◆操恩兔"<<endl;
- cout<<"■師雌兔"<<endl;
- cout<<"▽凹痾兔"<<endl;
- system("pause");
- system("cls");
- while(a!=60&&b!=60&&c!=60&&d!=60&&e!=60&&f!=60)
- {
- r=rand()%4;
- if(r==0)
- a++;
- cout<<"比賽進行中"<<endl;
- cout<<"-----------------------------------------------------------|終點恩恩"<<endl;
- for(int i=1;i<=a;i++)
- cout<<" ";
- cout<<"☆JJ"<<endl;
- r=rand()%4;
- if(r==0)
- b++;
- for(int i=1;i<=b;i++)
- cout<<" ";
- cout<<"★TT"<<endl;
- r=rand()%4;
- if(r==0)
- c++;
- for(int i=1;i<=c;i++)
- cout<<" ";
- cout<<"◇周政輝"<<endl;
- r=rand()%4;
- if(r==0)
- d++;
- for(int i=1;i<=d;i++)
- cout<<" ";
- cout<<"◆歐伯喊"<<endl;
- r=rand()%4;
- if(r==0)
- e++;
- for(int i=1;i<=e;i++)
- cout<<" ";
- cout<<"■鍾珮瑜"<<endl;
- r=rand()%4;
- if(r==0)
- f++;
- for(int i=1;i<=f;i++)
- cout<<" ";
- cout<<"▽油源和"<<endl;
- system("cls");
- }
-
- }
-
-
複製代碼 |