返回列表 發帖

賽馬程式 (一)

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

  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. #include<ctime>
  4. using namespace std;
  5. int main(){
  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.    
  9.     cout<<"◆"<<endl;
  10.     cout<<"★"<<endl;
  11.     cout<<"▲"<<endl;
  12.     cout<<"●"<<endl;
  13.    
  14.    
  15.     system("pause");
  16.     return 0;
  17. }
複製代碼

TOP

  1. [code]#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. }
複製代碼
[/code]

TOP

返回列表