本帖最後由 謝瀞儀 於 2015-3-14 10:59 編輯
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name[21]={"V家七宗罪系列(包含序號2~9)","湯匙(齒輪) ",
- "酒杯 ",
- "劍 ",
- "金鑰匙 ",
- "人偶 ",
- "四面鏡 ",
- "禍世之剪 ",
- "上了發條的搖籃曲 ",
- "白癡藥水 ",
- "生鏽的齒輪人偶 ","染血雙刃(附皮革套) ",
- "跳針的古老大鐘 ","失憶藥丸 ",
- "座敷童子的靈棺 ","淌血的附喪神人偶 ",
- "會咬人的蜘蛛玩偶 ",
- "梅杜莎的頭顱 ","巫婆熬藥的大鍋 ",
- "活生生殭屍殺人魔/吸血鬼 "};
- long money[20]={1200,70,80,80,100,120,150,100,350,
- 70,50,20,130,70,130,120,250,500,10000};
- cout<<"XXX崩壞/中二玩具精品店XXX"<<endl;
- cout<<"這裡的壞掉商品包山包海,應有盡有,等你來搜刮!"<<endl;
- cout<<"對於購買商品的問題,出什麼事本店一概不負責"<<endl;
- cout<<"------------------------------------------"<<endl;
- int i=0;
- while(i<19)
- {
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<money[i]<<"萬元"<<endl;
- i++;
- }
- system("pause");
- return 0;
- }
複製代碼 |