返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     cout<<"☆★☆智能玩具店☆★☆"<<endl<<endl;
  7.     string commodity[8]={"新生兒",
  8.                          "大小便",
  9.                          "阿嬤丸",
  10.                          "發瘋藥水",
  11.                          "甲狀腺",
  12.                          "廁所清潔劑",
  13.                          "山寨包包LV",
  14.                          "結帳"};
  15.     int price[7]={20,
  16.                   3000,
  17.                   500,
  18.                   20,
  19.                   600,
  20.                   10,
  21.                   8000,};
  22.     cout<<"[商品價目表]"<<endl;
  23.     for(int i=0; i<7; i++)
  24.     {
  25.             cout<<"("<<i+1<<")"<<commodity[i]<<"\t"<<price[i]<<"元"<<endl;
  26.     }
  27.     cout<<"(8)"<<commodity[7]<<endl;                  
  28.     system("pause");
  29.     return 0;               
  30. }
複製代碼

TOP

返回列表