返回列表 發帖

[隨堂測驗] 賽馬程式 (一)

本帖最後由 王瑞喻 於 2019-12-28 14:04 編輯

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



本帖隱藏的內容需要回復才可以瀏覽
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

  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. #include<ctime>
  4. using namespace std;
  5. int main()
  6. {  
  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. }
複製代碼
Jian-wei Wang

TOP

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

TOP

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

TOP

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

TOP

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    
  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. }
複製代碼

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<<"---------------------------------------"<<endl;
  7.     cout<<"◆"<<endl<<"★"<<endl<<"▲"<<endl<<"●"<<endl;
  8.     system("pause");
  9.     return 0;
  10. }
複製代碼

TOP

本帖最後由 鄭羽捷 於 2019-12-7 11:49 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.    cout<<"[好事成雙]賽馬場\n----------------------------------------------------------|終點"<<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<<"[好事成雙]賽馬場\n----------------------------------------------------------|終點"<<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<<"★"<<endl<<"▲"<<endl<<"●"<<endl;
  9.     system("pause");
  10.     return 0;
  11. }
複製代碼

TOP

本帖最後由 黃傳耀 於 2019-12-7 11:09 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"賽馬場"<<endl<<"---------------------------------------終點"<<endl;
  7.     cout<<"◆"<<endl<<"★"<<endl<<"▲"<<endl<<"●"<<endl;
  8.    
  9.     system("pause");
  10.     return 0;
  11. }
複製代碼

TOP

返回列表