返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     string name[]={"遙控汽車","飛機模型","足球\t","拼圖\t","玩具槍","可愛玩偶","籃球\t"};
  6.     int price[]={450,550,325,200,660,150,380};
  7.       
  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.    
  15.    
  16.     system("pause");
  17.     return 0;
  18. }
複製代碼

TOP

返回列表