返回列表 發帖

賽馬程式 (一)

本帖最後由 tonyh 於 2017-5-6 13:50 編輯

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

  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. }
複製代碼

  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"「好事成雙"<<endl;
  7.     cout<<"---------------------------------------------------------|FIN"<<endl;
  8.     cout<<"A"<<endl;
  9.     cout<<"B"<<endl;
  10.     cout<<"C"<<endl;
  11.     cout<<"D"<<endl;
  12.     cout<<"E"<<endl;
  13.     cout<<"F"<<endl;

  14.     system("pause");
  15.     return 0;
  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. }
複製代碼
ABCDEFGHIJKLMNOPQRSTUVWXYZ

TOP

  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"[祝你中獎] 賽馬場"<<endl;
  7.     cout<<"!-----------------------------------!"<<endl;
  8.     cout<<"A"<<endl;
  9.     cout<<"B"<<endl;
  10.     cout<<"C"<<endl;
  11.     cout<<"D"<<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<<"---------------------------------------------------------|FIN"<<endl;
  8.     cout<<"A"<<endl;
  9.     cout<<"B"<<endl;
  10.     cout<<"C"<<endl;
  11.     cout<<"D"<<endl;
  12.     cout<<"E"<<endl;
  13.     cout<<"F"<<endl;

  14.     system("pause");
  15.     return 0;
  16. }
複製代碼
我是眾神之王XXX  I love you
0000000000

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

返回列表