返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     string n[]={"手榴彈","狙擊槍","火箭筒","AK47  ","散彈槍"};
  6.     int price[]={450,550,325,200,660,150};
  7.     cout<<"武器店"<<endl<<endl;
  8.     cout<<"[商品價目表]"<<endl;
  9.     for(int i=0; i<7; i++)
  10.          cout<<"("<<i+1<<")"<<n[i]<<"\t"<<price[i]<<"元"<<endl;   
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

TOP

返回列表