返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string n[5]={"玩具車","熊玩偶","羽毛球","乒乓球","玩具槍"};
  7.     int p[5]={450,300,30,10,600};
  8.     cout<<"☆智能玩具店☆"<<endl<<endl;
  9.     cout<<"商品價目表"<<endl<<endl;
  10.     for(int i=0; i<5; i++)
  11.     {
  12.            cout<<"("<<i+1<<")"<<n[i]<<"\t"<<p[i]<<"元"<<endl;   
  13.     }   
  14.     system("pause");
  15.     return 0;
  16. }
複製代碼

TOP

返回列表