- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main(){
- string name[]={"怪味豆 ","巧克力青蛙 ","故障的隱形斗篷 ","變身藥水 ","反彈魔杖 "};
- int price[]={30,50,350,500,650};
- cout<<"==========弗雷與喬治的整人玩具店=========="<<endl<<endl;
- cout<<"[商品價目表]"<<endl;
- for(int i=0;i<5;i++)
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |