返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name[]={"遙控車","飛機模型","籃球    ","101拼圖    ","遊戲機  ","可愛玩偶","棒球    "};
  7.     int price[]={90,70,30,60,80,50,20};
  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.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

返回列表