返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     string name[]={"遙控車","飛機模型","足球    ","拼圖    ","玩具槍  ","食用玩偶","籃球    "};
  6.     int price[]={750,330,325,200,160,450,380};
  7.     cout<<"-------智能玩具店-------"<<endl<<endl;
  8.     cout<<"[商品價目表]"<<endl;
  9.     for(int i=0;i<7;i++)
  10.             cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
  11.     system ("pause");
  12.     return 0;
  13. }
複製代碼

TOP

返回列表