- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name[6]={"外星槍","手槍 ","野牛衝鋒槍","火焰噴射器","湯瑪遜衝鋒槍","大砲 "};
- int money[6]={450,120,300,540,430,700};
- cout<<"☆★☆智能槍具店☆★☆"<<endl;
- cout<<"[商品價目表]"<<endl;
- for(int i=0;i<6;i++)
- {
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<money[i]<<"元"<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |