返回列表 發帖

賽馬程式 (一)

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

  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<<"-------------------------------------------------------------------------| 終點"<<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<<"賭注大亨";
  7.     cout<<"---------------------------------------------------------------|終點"<<endl;
  8.     cout<<"-_-"<<endl;
  9.     cout<<"OwO"<<endl;
  10.     cout<<":D"<<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<<"0~0------"<<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;
  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;
  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. }
複製代碼

TOP

返回列表