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

TOP

返回列表