返回列表 發帖

[作業] 賽馬程式 (三)

本帖最後由 tonyh 於 2013-10-26 14:25 編輯

使在比賽結束後, 程式能判斷出哪位選手勝出.
提示: 判斷變數 a, b, c, 還是 d, 誰比較大
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int winner;
  7.     int a=0,b=0,c=0,d=0,r;
  8.     cout<<"$ 財源滾滾賽馬場 $"<<endl;
  9.     cout<<"---------------------------------------------------------------------|終點|"<<endl;
  10.     cout<<"◥1◣"<<endl;
  11.     cout<<"◥2◣"<<endl;
  12.     cout<<"◥3◣"<<endl;
  13.     cout<<"◥4◣"<<endl;
  14.     system("pause");
  15.     system("cls");
  16.     srand(time(NULL));
  17.     while((a!=70)&&(b!=70)&&(c!=70)&&(d!=70))
  18.     {
  19.         r=rand()%4;    //產生0~3之隨機亂數
  20.         if(r==0)
  21.             a++;
  22.         if(r==1)
  23.             b++;
  24.         if(r==2)
  25.             c++;
  26.         if(r==3)
  27.             d++;
  28.         cout<<"比賽進行中"<<endl;
  29.         cout<<"---------------------------------------------------------------------|終點|"<<endl;
  30.         for(int i=1;i<=a;i++)
  31.             cout<<" ";
  32.         cout<<"◥1◣"<<endl;
  33.         for(int i=1;i<=b;i++)
  34.             cout<<" ";
  35.         cout<<"◥2◣"<<endl;
  36.         for(int i=1;i<=c;i++)
  37.             cout<<" ";
  38.         cout<<"◥3◣"<<endl;
  39.         for(int i=1;i<=d;i++)
  40.             cout<<" ";
  41.         cout<<"◥4◣"<<endl;
  42.         system("cls");
  43.     }
  44.         if(a>b && a>c && a>d)
  45.             winner=1;
  46.         else if(b>a && b>c && b>d)
  47.              winner=2;
  48.         else if(c>a && c>b && c>d)
  49.              winner=3;
  50.         else
  51.             winner=4;
  52.         cout<<"比賽結束! 由 "<<winner<<" 號選手先馳得點!"<<endl;
  53.         cout<<"---------------------------------------------------------------------|終點|"<<endl;
  54.         for(int i=1;i<=a;i++)
  55.             cout<<" ";
  56.         cout<<"◥1◣"<<endl;
  57.         for(int i=1;i<=b;i++)
  58.             cout<<" ";
  59.         cout<<"◥2◣"<<endl;
  60.         for(int i=1;i<=c;i++)
  61.             cout<<" ";
  62.         cout<<"◥3◣"<<endl;
  63.         for(int i=1;i<=d;i++)
  64.             cout<<" ";
  65.         cout<<"◥4◣"<<endl;  
  66.     system("pause");   
  67.     return 0;
  68. }
複製代碼

本帖最後由 林以諾 於 2013-10-26 14:23 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.   int winner;
  7.   int a=0,b=0,c=0,d=0,r;
  8.   cout<<"『以諾帥哥』賽馬場!!"<<endl;
  9.   cout<<"-----------------------------------------------------------|終點"<<endl;
  10.   cout<<"◥1◣"<<endl;
  11.   cout<<"◥2◣"<<endl;
  12.   cout<<"◥3◣"<<endl;
  13.   cout<<"◥4◣"<<endl;
  14.   system("pause");
  15.   srand(time(NULL));
  16.   while((a!=60)&&(b!=60)&&(c!=60)&&(d!=60))
  17.   {
  18.              r=rand()%4;
  19.              if(r==0)
  20.               a++;     
  21.              else if(r==1)
  22.               b++;   
  23.              else if(r==2)
  24.               c++;   
  25.              else
  26.               d++;   
  27.              cout<<"比賽進行中....";
  28.              cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  29.                for(int i=1;i<=a;i++)
  30.                cout<<" ";
  31.                cout<<"◥1◣"<<endl;     
  32.                for(int i=1;i<=b;i++)
  33.                cout<<" ";
  34.                cout<<"◥2◣"<<endl;
  35.                for(int i=1;i<=c;i++)
  36.                cout<<" ";
  37.                cout<<"◥3◣"<<endl;     
  38.                for(int i=1;i<=d;i++)
  39.                cout<<" ";
  40.                cout<<"◥4◣"<<endl;
  41.                system("cls");                             
  42.                                            }
  43.                if(a>b&&a>c&&a>d)
  44.                winner=1;
  45.                else if(b>a&&b>c&&b>d)
  46.                winner=2;
  47.                else if(c>a&&c>b&&c>d)
  48.                winner=3;
  49.                else
  50.                winner=4;
  51.                cout<<"比賽結束!由"<<winner<<"號選手獲得勝利"<<endl;
  52.                cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  53.                for(int i=1;i<=a;i++)
  54.                cout<<" ";
  55.                cout<<"◥1◣"<<endl;     
  56.                for(int i=1;i<=b;i++)
  57.                cout<<" ";
  58.                cout<<"◥2◣"<<endl;
  59.                for(int i=1;i<=c;i++)
  60.                cout<<" ";
  61.                cout<<"◥3◣"<<endl;     
  62.                for(int i=1;i<=d;i++)
  63.                cout<<" ";
  64.                cout<<"◥4◣"<<endl;                                       
  65.   system("pause");
  66.   return 0;  
  67. }
複製代碼

TOP

本帖最後由 鎧言 於 2013-10-26 14:32 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int winner;
  7.     int a=0,b=0,c=0,d=0,r;
  8.     cout<<"$ 財源滾滾賽馬場 $"<<endl;
  9.     cout<<"---------------------------------------------------------------------|終點|"<<endl;
  10.     cout<<"◥1◣"<<endl;
  11.     cout<<"◥2◣"<<endl;
  12.     cout<<"◥3◣"<<endl;
  13.     cout<<"◥4◣"<<endl;
  14.     system("pause");
  15.     system("cls");
  16.     srand(time(NULL));
  17.     while((a!=70)&&(b!=70)&&(c!=70)&&(d!=70))
  18.     {
  19.         r=rand()%4;    //產生0~3之隨機亂數
  20.         if(r==0)
  21.             a++;
  22.         if(r==1)
  23.             b++;
  24.         if(r==2)
  25.             c++;
  26.         if(r==3)
  27.             d++;
  28.         cout<<"比賽進行中"<<endl;
  29.         cout<<"---------------------------------------------------------------------|終點|"<<endl;
  30.         for(int i=1;i<=a;i++)
  31.             cout<<" ";
  32.         cout<<"◥1◣"<<endl;
  33.         for(int i=1;i<=b;i++)
  34.             cout<<" ";
  35.         cout<<"◥2◣"<<endl;
  36.         for(int i=1;i<=c;i++)
  37.             cout<<" ";
  38.         cout<<"◥3◣"<<endl;
  39.         for(int i=1;i<=d;i++)
  40.             cout<<" ";
  41.         cout<<"◥4◣"<<endl;
  42.         system("cls");
  43.     }
  44.         if(a>b && a>c && a>d)
  45.             winner=1;
  46.         else if(b>a && b>c && b>d)
  47.              winner=2;
  48.         else if(c>a && c>b && c>d)
  49.              winner=3;
  50.         else
  51.             winner=4;
  52.         cout<<"比賽結束! 由 "<<winner<<" 號選手先馳得點!"<<endl;
  53.         cout<<"---------------------------------------------------------------------|終點|"<<endl;
  54.         for(int i=1;i<=a;i++)
  55.             cout<<" ";
  56.         cout<<"◥1◣"<<endl;
  57.         for(int i=1;i<=b;i++)
  58.             cout<<" ";
  59.         cout<<"◥2◣"<<endl;
  60.         for(int i=1;i<=c;i++)
  61.             cout<<" ";
  62.         cout<<"◥3◣"<<endl;
  63.         for(int i=1;i<=d;i++)
  64.             cout<<" ";
  65.         cout<<"◥4◣"<<endl;  
  66.     system("pause");   
  67.     return 0;
  68. }
複製代碼

TOP

本帖最後由 黃崇維 於 2013-10-26 14:30 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int winner;
  7.     int a=0,b=0,c=0,d=0,r;
  8.     cout<<"『玩到爽』賽場"<<endl;
  9.     cout<<"----------------------------------------------------終點"<<endl;
  10.     cout<<"◥1◣"<<endl;
  11.     cout<<"◥2◣"<<endl;
  12.     cout<<"◥3◣"<<endl;
  13.     cout<<"◥4◣"<<endl;
  14.     system("pause");
  15.     srand(time(NULL));
  16.     while((a!=60)&&(b!=60)&&(c!=60)&&(d!=60))
  17.     {
  18.              r=rand()%4;
  19.              if(r==0)
  20.                a++;     
  21.              else if(r==1)
  22.                b++;   
  23.              else if(r==2)
  24.                c++;   
  25.              else
  26.                d++;   
  27.              cout<<"比賽進行中...";
  28.              cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  29.                for(int i=1;i<=a;i++)
  30.                  cout<<" ";
  31.                cout<<"◥1◣"<<endl;     
  32.                for(int i=1;i<=b;i++)
  33.                  cout<<" ";
  34.                cout<<"◥2◣"<<endl;
  35.                for(int i=1;i<=c;i++)
  36.                  cout<<" ";
  37.                cout<<"◥3◣"<<endl;     
  38.                for(int i=1;i<=d;i++)
  39.                  cout<<" ";
  40.                cout<<"◥4◣"<<endl;
  41.                system("cls");                           
  42.          }
  43.                if(a>b&&a>c&&a>d)
  44.                  winner=1;
  45.                else if(b>a&&b>c&&b>d)
  46.                  winner=2;
  47.                else if(c>a&&c>b&&c>d)
  48.                  winner=3;
  49.                else
  50.                  winner=4;
  51.                  
  52.                cout<<"比賽結束!由"<<winner<<"號選手拿到勝利--------------------------|終點"<<endl;
  53.                for(int i=1;i<=a;i++)
  54.                  cout<<" ";
  55.                cout<<"◥1◣"<<endl;     
  56.                for(int i=1;i<=b;i++)
  57.                  cout<<" ";
  58.                cout<<"◥2◣"<<endl;
  59.                for(int i=1;i<=c;i++)
  60.                  cout<<" ";
  61.                cout<<"◥3◣"<<endl;     
  62.                for(int i=1;i<=d;i++)
  63.                  cout<<" ";
  64.                cout<<"◥4◣"<<endl;                                       
  65.     system("pause");
  66.     return 0;  
  67. }
複製代碼

TOP

本帖最後由 張瀚仁 於 2013-10-26 14:27 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int a=0 ,b=0, c=0, d=0,r,bigger,biggest,more;
  7.     cout<<"*準備輸光吧賽馬場*"<<endl;
  8.     cout<<endl<<"-----------------------------------------------------------------------|終點|"<<endl;
  9.     cout<<"◢1◤"<<endl;
  10.     cout<<"◢2◤"<<endl;
  11.     cout<<"◢3◤"<<endl;
  12.     cout<<"◢4◤"<<endl;
  13.     system("pause");
  14.     system("cls");
  15.     srand(time(NULL));
  16.     while((a!=65) && (b!=65) && (c!=65) && (d!=65))
  17.     {
  18.         r=rand()%4;
  19.         if(r==0)              
  20.         a++;
  21.         else if(r==1)              
  22.         b++;
  23.         else if(r==2)              
  24.         c++;
  25.         else if(r==3)              
  26.         d++;
  27.     cout<<"比賽進行中"<<endl;
  28.     cout<<endl<<"-----------------------------------------------------------------|終點|"<<endl;
  29.     for(int i=1;i<=a;i++)
  30.         cout<<" ";
  31.     cout<<"◢1◤"<<endl;
  32.     for(int i=1;i<=b;i++)
  33.         cout<<" ";
  34.     cout<<"◢2◤"<<endl;
  35.     for(int i=1;i<=c;i++)
  36.         cout<<" ";
  37.     cout<<"◢3◤"<<endl;
  38.     for(int i=1;i<=d;i++)
  39.         cout<<" ";
  40.     cout<<"◢4◤"<<endl;
  41.     system("cls");         
  42.     }
  43.     more=(a>b)?a:b;
  44.     bigger=(c>d)?c:d;
  45.     biggest=(bigger>more)?bigger:more;
  46.     if(biggest==a)
  47.         cout<<"1號勝利"<<endl;
  48.     else if(biggest==b)
  49.              cout<<"2號勝利"<<endl;
  50.     else if(biggest==c)
  51.              cout<<"3號勝利"<<endl;
  52.     else if(biggest==d)
  53.     cout<<"4號勝利"<<endl;
  54.     cout<<endl<<"-----------------------------------------------------------------|終點|"<<endl;
  55.     for(int i=1;i<=a;i++)
  56.         cout<<" ";
  57.     cout<<"◢1◤"<<endl;
  58.     for(int i=1;i<=b;i++)
  59.         cout<<" ";
  60.     cout<<"◢2◤"<<endl;
  61.     for(int i=1;i<=c;i++)
  62.         cout<<" ";
  63.     cout<<"◢3◤"<<endl;
  64.     for(int i=1;i<=d;i++)
  65.         cout<<" ";
  66.     cout<<"◢4◤"<<endl;
  67.     system("pause");   
  68.     return 0;
  69. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int winner;
  7.     int a=0,b=0,c=0,d=0,r;
  8.     cout<<">讓你輸光光<賽場"<<endl;
  9.     cout<<"----------------------------------------------------終點"<<endl;
  10.     cout<<"◥1◣"<<endl;
  11.     cout<<"◥2◣"<<endl;
  12.     cout<<"◥3◣"<<endl;
  13.     cout<<"◥4◣"<<endl;
  14.     system("pause");
  15.     srand(time(NULL));
  16.     while((a!=60)&&(b!=60)&&(c!=60)&&(d!=60))
  17.     {
  18.                 r=rand()%4;
  19.                if(r==0)
  20.                a++;     
  21.                 else if(r==1)
  22.                b++;   
  23.                 else if(r==2)
  24.                c++;   
  25.                 else
  26.                d++;   
  27.              cout<<"比賽進行中...";
  28.              cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  29.                 for(int i=1;i<=a;i++)
  30.                  cout<<" ";
  31.                cout<<"◥1◣"<<endl;     
  32.                  for(int i=1;i<=b;i++)
  33.                  cout<<" ";
  34.                cout<<"◥2◣"<<endl;
  35.                 for(int i=1;i<=c;i++)
  36.                  cout<<" ";
  37.                cout<<"◥3◣"<<endl;     
  38.                  for(int i=1;i<=d;i++)
  39.                  cout<<" ";
  40.                cout<<"◥4◣"<<endl;
  41.                system("cls");                           
  42. }
  43.                if(a>b&&a>c&&a>d)
  44.                  winner=1;
  45.                else if(b>a&&b>c&&b>d)
  46.                  winner=2;
  47.                else if(c>a&&c>b&&c>d)
  48.                  winner=3;
  49.                else
  50.                  winner=4;
  51.                cout<<"比賽結束!"<<endl;
  52.                cout<<"是"<<winner<<"號選手贏了!!!"<<endl;
  53.                cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  54.                for(int i=1;i<=a;i++)
  55.                         cout<<" ";
  56.                cout<<"◥1◣"<<endl;     
  57.                for(int i=1;i<=b;i++)
  58.                         cout<<" ";
  59.                cout<<"◥2◣"<<endl;
  60.                for(int i=1;i<=c;i++)
  61.                          cout<<" ";
  62.                cout<<"◥3◣"<<endl;     
  63.                for(int i=1;i<=d;i++)
  64.                         cout<<" ";
  65.                cout<<"◥4◣"<<endl;                                       
  66.     system("pause");
  67.     return 0;  
  68. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     int winner;
  7.     int a=0,b=0,c=0,d=0,r;
  8.     cout<<"$ 財源滾滾賽馬場 $"<<endl;
  9.     cout<<"---------------------------------------------------------------------|終點|"<<endl;
  10.     cout<<"◥1◣"<<endl;
  11.     cout<<"◥2◣"<<endl;
  12.     cout<<"◥3◣"<<endl;
  13.     cout<<"◥4◣"<<endl;
  14.     system("pause");
  15.     system("cls");
  16.     srand(time(NULL));
  17.     while((a!=70)&&(b!=70)&&(c!=70)&&(d!=70))
  18.     {
  19.         r=rand()%4;    //產生0~3之隨機亂數
  20.         if(r==0)
  21.             a++;
  22.         if(r==1)
  23.             b++;
  24.         if(r==2)
  25.             c++;
  26.         if(r==3)
  27.             d++;
  28.         cout<<"比賽進行中"<<endl;
  29.         cout<<"---------------------------------------------------------------------|終點|"<<endl;
  30.         for(int i=1;i<=a;i++)
  31.             cout<<" ";
  32.         cout<<"◥1◣"<<endl;
  33.         for(int i=1;i<=b;i++)
  34.             cout<<" ";
  35.         cout<<"◥2◣"<<endl;
  36.         for(int i=1;i<=c;i++)
  37.             cout<<" ";
  38.         cout<<"◥3◣"<<endl;
  39.         for(int i=1;i<=d;i++)
  40.             cout<<" ";
  41.         cout<<"◥4◣"<<endl;
  42.         system("cls");
  43.     }
  44.         if(a>b && a>c && a>d)
  45.             winner=1;
  46.         else if(b>a && b>c && b>d)
  47.              winner=2;
  48.         else if(c>a && c>b && c>d)
  49.              winner=3;
  50.         else
  51.             winner=4;
  52.         cout<<"比賽結束! 由 "<<winner<<" 號選手先馳得點!"<<endl;
  53.         cout<<"---------------------------------------------------------------------|終點|"<<endl;
  54.         for(int i=1;i<=a;i++)
  55.             cout<<" ";
  56.         cout<<"◥1◣"<<endl;
  57.         for(int i=1;i<=b;i++)
  58.             cout<<" ";
  59.         cout<<"◥2◣"<<endl;
  60.         for(int i=1;i<=c;i++)
  61.             cout<<" ";
  62.         cout<<"◥3◣"<<endl;
  63.         for(int i=1;i<=d;i++)
  64.             cout<<" ";
  65.         cout<<"◥4◣"<<endl;  
  66.     system("pause");   
  67.     return 0;
  68. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6. int a=0,b=0,c=0,d=0,r,winner;
  7. cout<<"李奧斯本 賽馬場"<<endl;
  8. cout<<"$-----------------------------------------------------------------||終點||"<<endl;
  9. cout<<"◥1◣"<<endl;
  10. cout<<"◥2◣"<<endl;
  11. cout<<"◥3◣"<<endl;
  12. cout<<"◥4◣"<<endl<<endl;
  13. system("pause");
  14. srand(time(NULL));
  15. while((a!=68)&&(b!=68)&&(c!=68)&&(d!=68))
  16. {
  17.   r=rand()%4;
  18.   if(r==0)
  19.      a++;
  20.   if(r==1)
  21.      b++;  
  22.   if(r==2)
  23.      c++;   
  24.   if(r==3)
  25.      d++;                                       
  26. cout<<"比賽進行中...";
  27. cout<<endl<<"$-----------------------------------------------------------------||終點||"<<endl;   
  28.      for(int i=1;i<=a;i++)
  29.         cout<<" ";
  30.      cout<<"◥1◣"<<endl;
  31.      for(int i=1;i<=b;i++)
  32.         cout<<" ";
  33.      cout<<"◥2◣"<<endl;   
  34.      for(int i=1;i<=c;i++)
  35.         cout<<" ";
  36.      cout<<"◥3◣"<<endl;   
  37.      for(int i=1;i<=d;i++)
  38.         cout<<" ";
  39.      cout<<"◥4◣"<<endl;
  40.      system("cls");        
  41. }
  42.    cout<<"比賽結束";
  43.    cout<<endl<<"$-----------------------------------------------------------------||終點||"<<endl;   
  44.      for(int i=1;i<=a;i++)
  45.         cout<<" ";
  46.      cout<<"◥1◣"<<endl;
  47.      for(int i=1;i<=b;i++)
  48.         cout<<" ";
  49.      cout<<"◥2◣"<<endl;   
  50.      for(int i=1;i<=c;i++)
  51.         cout<<" ";
  52.      cout<<"◥3◣"<<endl;   
  53.      for(int i=1;i<=d;i++)
  54.         cout<<" ";
  55.      cout<<"◥4◣"<<endl;
  56.    if(a>b && a>c && a>d)
  57.    {
  58.       winner=1;   
  59.    }
  60.    else if(a<b && b>c && b>d)
  61.    {
  62.       winner=2;   
  63.    }
  64.    else if(a<c && c>b && c>d)
  65.    {
  66.       winner=3;     
  67.    }
  68.    else
  69.    {
  70.       winner=4;     
  71.    }
  72.    cout<<"比賽結果為 "<<winner<<" 號勝利"<<endl;   
  73. system("pause");
  74. return 0;   
  75. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string winner;
  7.     int a=0 ,b=0, c=0, d=0,r;
  8.     cout<<"$ 老師同學賽馬場(賭老師的必輸光用看的就知道) $"<<endl;
  9.     cout<<"-----------------------------------------------------------------|終點"<<endl;
  10.     cout<<"~老師"<<endl;
  11.     cout<<"~~~~~逸群"<<endl;
  12.     cout<<"~~~~以諾"<<endl;
  13.     cout<<"~~~凱言"<<endl;
  14.       srand(time(NULL));
  15.       system("pause");
  16.   while((a!=60)&&(b!=60)&&(c!=60)&&(d!=60))
  17.   {
  18.              r=rand()%4;
  19.              if(r==0)
  20.               a++;     
  21.              else if(r==1)
  22.               b++;   
  23.              else if(r==2)
  24.               c++;   
  25.              else
  26.               d++;   
  27.              cout<<"比賽進行中....";
  28.              cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  29.                for(int i=1;i<=a;i++)
  30.                cout<<" ";
  31.                cout<<"~老師"<<endl;     
  32.                for(int i=1;i<=b;i++)
  33.                cout<<" ";
  34.                cout<<"~~~~~逸群"<<endl;
  35.                for(int i=1;i<=c;i++)
  36.                cout<<" ";
  37.                cout<<"~~~~以諾"<<endl;     
  38.                for(int i=1;i<=d;i++)
  39.                cout<<" ";
  40.                cout<<"~~~凱言"<<endl;
  41.                system("cls");                             
  42.               if(a>b && a>c && a>d)
  43.             winner="老師";
  44.         else if(b>a && b>c && b>d)
  45.              winner="逸群";
  46.         else if(c>a && c>b && c>d)
  47.              winner="以諾";
  48.         else
  49.             winner="凱言";                             }
  50.              cout<<"比賽結束! 由 "<<winner<<" 選手先馳得點!"<<endl;
  51.              cout<<endl<<"-----------------------------------------------------------|終點"<<endl;
  52.               for(int i=1;i<=a;i++)
  53.                cout<<" ";
  54.                cout<<"~老師"<<endl;     
  55.                for(int i=1;i<=b;i++)
  56.                cout<<" ";
  57.                cout<<"~~~~~逸群"<<endl;
  58.                for(int i=1;i<=c;i++)
  59.                cout<<" ";
  60.                cout<<"~~~~以諾"<<endl;     
  61.                for(int i=1;i<=d;i++)
  62.                cout<<" ";
  63.                cout<<"~~~凱言"<<endl;                                       
  64.   system("pause");
  65.   return 0;  
  66. }
複製代碼

TOP

返回列表