- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- cout<<"*** special植物專賣店 ***"<<endl<<endl;
- string name[7]={"黃金玫瑰","食人花",
- "幽靈草","瘋樹 ",
- "魔鬼藤蔓","含兇草",
- "搖頭樹"};
- int price[7]={7099,1598,2960,1800,4050,3999,6540};
- for(int i=0; i<=6; i++)
- {
- cout<<"<"<<i+1<<">"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
- }
- system("pause");
- return 0;
- }
複製代碼 |