- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name[]={"阿法狗","深藍 ","絕藝 ","里拉 ","ZenGO ","LGS ","手談 "};
- int price[]={8700,3800,7800,2000,6600,1500,5900};
- 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;
- }
複製代碼 |