- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- re:
- system("cls");
- string toy[]={"遙控器車","飛機模型","足球\t","拼圖\t","玩具槍\t","可愛玩偶","籃球\t"};
- int a[]={100,21,258,9852,3333,159,95};
- cout<<"☆★☆智能玩具店☆★☆"<<endl;
- cout<<endl<<"[商品價目表]"<<endl;
- for(int j=0;j<7;j++)
- {
- cout<<"("<<j+1<<")";
- cout<<toy[j]<<a[j]<<"元"<<endl;
- }
- system("pause");
- goto re;
- return 0;
- }
複製代碼 |