試設計出如下之執行畫面:
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string s[4]={"◆","★","▲","●"};
- cout<<"「好事成雙」賽馬場"<<endl;
- cout<<"-------------------------------------------------------------------------| 終點"<<endl;
- for(int i=0;i<4;i++)
- {
- cout<<s[i]<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |