返回列表 發帖
本帖最後由 蔡季樺 於 2016-4-20 13:26 編輯
  1. #include<iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4. int main()
  5. {
  6.     string name[7]={"火焰藥水","放屁藥水","作夢藥水","打呵欠藥水","超人藥水","打老師藥水","萬能藥水"};
  7.     int money[7]={200,50,100,10,2000,1100,1000000000};            
  8.     cout<<"~~★☆★沒路用的藥水專賣店☆★☆~~"<<endl;
  9.     cout<<"[價目表]"<<endl;
  10.     for(int i=0; i<=6; i++)
  11.     {
  12.         cout<<"("<<i+1<<")"<<name[i]<<"\t"<<money[i]<<"元"<<endl;            
  13.     }
  14.     cout<<endl;
  15.     system("pause");
  16.     return 0;   
  17. }
複製代碼

TOP

返回列表