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

TOP

返回列表