返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string i[]={"遙控汽車","飛機模型","足球    ","拼圖    ","玩具槍  ","可愛玩偶","籃球    "};
  7.     int j[]={450,550,325,200,660,150,380};
  8.     cout<<"--玩具店--"<<endl;
  9.     for(int k=0;k<=6;k++){
  10.     cout<<"("<<k+1<<")"<<i[k]<<"\t"<<j[k]<<"元"<<endl;        
  11. }
  12.     system("pause");
  13.     return 0;
  14. }
複製代碼

TOP

返回列表