返回列表 發帖
本帖最後由 林侑成 於 2015-10-1 20:55 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main(){
  5.     string tag[9]={"(1)即刻槍戰","(2)勇士法則","(3)遊戲桃",
  6.                    "(4)雪球大戰","(5)遊戲天堂","(6)熱血精靈派",
  7.                    "(7)塞爾號","(8)minecraft"};
  8.     int price[8]={9900,7000,200,300,200,500,500,1000};
  9.     cout<<"\t*** 智能線上遊戲店 ***"<<endl<<"本店商品保證讚(雖然是黑心貨)"<<endl<<endl;
  10.     cout<<"[商品一覽表]"<<endl;
  11.     for(int i=0; i<8; i++){
  12.        cout<<"<"<<i+1<<">"<<tag[i]<<"\t\t"<<price[i]<<"元"<<endl;   
  13.     }
  14.     cout<<"<9><9>結帳去"<<"\t\t"<<endl<<endl;
  15.     cout<<"[優惠方案]\t本店滿10000元及立刻打8折"<<endl;
  16.    
  17.    
  18.    
  19.     system("pause");   
  20.     return 0;
  21. }
複製代碼
我是眾神之王XXX  I love you
0000000000

TOP

返回列表