- #include<cstdlib>
- #include<iostream>
- using namespace std;
- int main()
- {
- string protuct[] = { "傳說對決","英雄聯盟","寶可夢集結","寶寶巴士","阿嬤跑酷" };
- int price[] = { 2000,1000,500,500,1000 };
- cout << "--------------遊戲儲值代儲--------------" << endl;
- cout << "商品價目表:" << endl;
- for (int i = 0;i <= 4;i++)
- {
- cout << i + 1 << "號商品 ";
- cout << protuct[i] << " " << price[i] << "元" << endl;;
- }
- system("pause");
- return 0;
- }
複製代碼 |