返回列表 發帖

賽馬程式 (一)

試設計出如下之執行畫面:

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成雙」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"◆"<<endl;
  9.     cout<<"★"<<endl;
  10.     cout<<"▲"<<endl;
  11.     cout<<"●"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼
May

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     cout<<"「好事成霜」賽馬場"<<endl;
  6.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  7.     cout<<"◆"<<endl;
  8.     cout<<"★"<<endl;
  9.     cout<<"▲"<<endl;
  10.     cout<<"●"<<endl;
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成雙」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"◆"<<endl;
  9.     cout<<"★"<<endl;
  10.     cout<<"▲"<<endl;
  11.     cout<<"●"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成雙」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"◆"<<endl;
  9.     cout<<"★"<<endl;
  10.     cout<<"▲"<<endl;
  11.     cout<<"●"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"☆★☆★大威天龍賽馬場 ★☆★☆"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"◆"<<endl;
  9.     cout<<"★"<<endl;
  10.     cout<<"▲"<<endl;
  11.     cout<<"●"<<endl;
  12.     system("pause");
  13.     return 0;
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事不成雙 見好就收」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"◆"<<endl;
  9.     cout<<"★"<<endl;
  10.     cout<<"▲"<<endl;
  11.     cout<<"●"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

本帖最後由 陳牧謙 於 2023-3-11 14:52 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成雙」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------|終點"<<endl;
  8.     cout<<"赤兔"<<endl;
  9.     cout<<"的盧"<<endl;
  10.     cout<<"絕影"<<endl;
  11.     cout<<"照獅"<<endl;
  12.     cout<<endl;
  13.     system("pause");
  14.     return 0;
  15. }
  16.      
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成單」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"Ⅰ"<<endl;
  9.     cout<<"Ⅱ"<<endl;
  10.     cout<<"Ⅲ"<<endl;
  11.     cout<<"Ⅳ"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     cout<<"「好事成雙」賽馬場"<<endl;
  6.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  7.     cout<<"◆"<<endl;
  8.     cout<<"★"<<endl;
  9.     cout<<"▲"<<endl;
  10.     cout<<"●"<<endl;
  11.             
  12. }
  13.     system("pause");
  14.     return 0;
  15. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成雙」賽馬場"<<endl;
  7.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  8.     cout<<"◆"<<endl;
  9.     cout<<"★"<<endl;
  10.     cout<<"▲"<<endl;
  11.     cout<<"●"<<endl;
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     cout<<"「好事成雙」賽馬場"<<endl;
  6.     cout<<"-------------------------------------------------------------------------| 終點"<<endl;
  7.     cout<<"◆"<<endl;
  8.     cout<<"★"<<endl;
  9.     cout<<"▲"<<endl;
  10.     cout<<"●"<<endl;
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.         cout<<"好事成雙賽馬場"<<endl;
  6.         cout<<"--------------------------------------------------------------------|終點"<<endl;
  7.         cout<<"◆"<<endl;
  8.     cout<<"★"<<endl;
  9.     cout<<"▲"<<endl;
  10.     cout<<"●"<<endl;
  11.         system("pause");
  12.         return 0;
  13. }
複製代碼

TOP

返回列表