返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     first:
  7.     int option;
  8.     cout<<"(1)動畫1 (2)動畫2 (3)動畫3"<<endl;
  9.     cin>>option;
  10.     if(option==1)
  11.         goto re;
  12.     if(option==2)
  13.         goto allre;
  14.     if(option==3)
  15.         goto eachre;
  16.     else
  17.     {
  18.         cout<<"這是三小?"<<endl;
  19.         system("pause");
  20.         system("cls");
  21.         goto first;
  22.     }
  23.     re:
  24.    
  25.     system("cls");
  26.    
  27.     for(int i=1;i<=80;i++)
  28.     {
  29.          if(i>=1 and i<11)
  30.              cout<<"▏.●.▏"<<endl;
  31.          if(i>=11 and i<21)
  32.              cout<<"▏▎●.●▎▏"<<endl;
  33.          if(i>=21 and i<31)
  34.              cout<<"▏▎▍.●.▍▎▏"<<endl;
  35.          if(i>=31 and i<41)
  36.              cout<<"▏▎▍▌.●. ▌▍▎▏"<<endl;
  37.          if(i>=41 and i<51)
  38.              cout<<"▏▎▍▌▋●.● ▋▌▍▎▏"<<endl;
  39.          if(i>=51 and i<61)
  40.              cout<<"▏▎▍▌▋▊.●.▊▋▌▍▎▏"<<endl;
  41.          if(i>=61 and i<71)
  42.              cout<<"▏▎▍▌▋▊▉ ●.● ▉▊▋▌▍▎▏"<<endl;
  43.          if(i>=71 and i<81)
  44.              cout<<"▏▎▍▌▋▊▉█.●. █▉▊▋▌▍▎▏"<<endl;
  45.          
  46.          system("cls");
  47.     }
  48.     goto re;
  49.     allre:
  50.     for(int i=1;i<=120;i++)
  51.     {
  52.          if(i>=1 and i<11)
  53.              cout<<"◎●○◤◢◣◥"<<endl;
  54.          if(i>=11 and i<21)
  55.              cout<<"●○◎◢◣◥◤"<<endl;
  56.          if(i>=21 and i<31)
  57.              cout<<"○◎●◣◥◤◢"<<endl;
  58.          if(i>=31 and i<41)
  59.              cout<<"◎●○◥◤◢◣"<<endl;
  60.          if(i>=41 and i<51)
  61.              cout<<"●○◎◤◢◣◥"<<endl;
  62.          if(i>=51 and i<61)
  63.              cout<<"○◎●◢◣◥◤"<<endl;
  64.          if(i>=61 and i<71)
  65.              cout<<"◎●○◣◥◤◢"<<endl;
  66.          if(i>=71 and i<81)
  67.              cout<<"●○◎◥◤◢◣"<<endl;
  68.          if(i>=81 and i<91)
  69.              cout<<"○◎●◤◢◣◥"<<endl;
  70.          if(i>=91 and i<101)
  71.              cout<<"◎●○◢◣◥◤"<<endl;
  72.          if(i>=101 and i<111)
  73.              cout<<"●○◎◣◥◤◢"<<endl;
  74.          if(i>=111 and i<121)
  75.              cout<<"●◎○◥◤◢◣"<<endl;
  76.          system("cls");
  77.     }
  78.     goto allre;
  79.     eachre:
  80.     for(int i=1;i<=40;i++)
  81.     {
  82.          if(i>=1 and i<11)
  83.              cout<<"◇◆◇◤◢◣◥◤◢◣◥◇◆◇"<<endl;
  84.          if(i>=11 and i<21)
  85.              cout<<"◆◇◆◢◣◥◤◢◣◥◤◆◇◆"<<endl;
  86.          if(i>=21 and i<31)
  87.              cout<<"◇◆◇◣◥◤◢◣◥◤◢◇◆◇"<<endl;
  88.          if(i>=31 and i<41)
  89.              cout<<"◆◇◆◥◤◢◣◥◤◢◣◆◇◆"<<endl;
  90.          
  91.          system("cls");
  92.     }
  93.     goto eachre;
  94.     system("pause");
  95.     return 0;   
  96. }
複製代碼

TOP

返回列表