返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name[]={"火箭炮彈","防護盾槍","核彈    ","手槍    ","特斯拉  ","警察手銬","步槍    "};
  7.     int price[]={5000,59487,999999,1,660000,15,8787};
  8.     cout<<"危險玩具店(嘿嘿)"<<endl<<endl;
  9.     cout<<"[恐怖價目]"<<endl;
  10.     for(int i=0; i<7; i++)
  11.          cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
  12.          
  13.     system("pause");
  14.     return 0;
  15. }
複製代碼

TOP

返回列表