返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     string name[]={"switch","ps5","ps4 ","紅白機","DS","手機","平板"};
  6.     int price[]={320,350,370,390,410,470,490};
  7.     cout<<"☆★☆智能玩具店☆★☆"<<endl<<endl;
  8.     cout<<"[商品價目表]"<<endl;
  9.     for(int i=0; i<7; i++)
  10.          cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
  11.     system("pause");
  12.     return 0;
  13. }
複製代碼

TOP

返回列表