返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     re:
  7.     system("cls");
  8.     string toy[]={"遙控器車","飛機模型","足球\t","拼圖\t","玩具槍\t","可愛玩偶","籃球\t"};
  9.     int a[]={100,21,258,9852,3333,159,95};
  10.     cout<<"☆★☆智能玩具店☆★☆"<<endl;
  11.     cout<<endl<<"[商品價目表]"<<endl;
  12.     for(int j=0;j<7;j++)
  13.     {
  14.         cout<<"("<<j+1<<")";
  15.         cout<<toy[j]<<a[j]<<"元"<<endl;
  16.     }
  17.     system("pause");
  18.     goto re;  
  19.     return 0;
  20. }
複製代碼

TOP

返回列表