返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name[7]={"遙控飛機","水槍  ","玩偶  ","足球  ","拼圖  ","籃球  ","玩具車"};
  7.     int price[7]={50000,6500000,70000,655000,999999,300000,750000};
  8.     cout<<"***貴死人玩具店***"<<endl<<endl;
  9.     cout<<"[商品價目表]"<<endl;
  10.     for(int i=0;i<=6;i++)
  11.     {
  12.         cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;   
  13.     }
  14.     system("pause");
  15.     return 0;   
  16. }
複製代碼

TOP

返回列表