返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {       
  6.         string name[6]={"外星槍","手槍    ","野牛衝鋒槍","火焰噴射器","湯瑪遜衝鋒槍","大砲      "};
  7.         int money[6]={450,120,300,540,430,700};
  8.         cout<<"☆★☆智能槍具店☆★☆"<<endl;
  9.         cout<<"[商品價目表]"<<endl;
  10.         for(int i=0;i<6;i++)
  11.         {
  12.                 cout<<"("<<i+1<<")"<<name[i]<<"\t"<<money[i]<<"元"<<endl;
  13.         }
  14.     system("pause");
  15.     return 0;
  16. }
複製代碼

TOP

返回列表