返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name[5]={"CAD   ","NERvGear","蘿球   ","密斯提斯","吉太    "};
  7.     int price[5]={10000,20000,20000,10000,10000};
  8.     cout<<"****動漫道具店****"<<endl;
  9.     cout<<"商品價目表"<<endl;
  10.     cout<<"========================="<<endl;
  11.     for(int i=0; i<5; i++)
  12.     {
  13.         cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
  14.     }   
  15.     system("pause");
  16.     return 0;   
  17. }
複製代碼
http://fs-old.mis.kuas.edu.tw/~s1102137106/music/

TOP

返回列表