- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
-
- string name[]={"球1","球2","球3","球4","球5","球6","球7"};
- int price[]={100,100,100,100,100,1000,100};
- cout<<"☆★☆玩具店☆★☆"<<endl;
- cout<<"[商品價目表]"<<endl;
- cout<<" "<<endl;
- cout<<" "<<endl;
-
- for(int i=0; i<7; i++ )
- {
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
-
- }
- system("pause");
- return 0;
- }
複製代碼 |