- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name[]={"沙德威斯坦","蟑螂屍體","萊柏屬塾大狙","加八十攝影","阿帕茶","破甲箭","地下水"};
- int price[]={10000,10,500,540,0,9999,50};
- cout<<"☆★☆智能玩具店☆★☆"<<endl<<endl;
- cout<<"[商品價目表]"<<endl;
- for(int i=0; i<7; i++)
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
- system("pause");
- return 0;
- }
複製代碼 |