返回列表 發帖
  1. #include<iostream>
  2. #include<iostream>
  3. #include<cstdlib>
  4. using namespace std;
  5. int main()
  6. {
  7.    string name [6]={"冬瓜茶","蘋果冰沙","檸檬愛玉","珍珠奶茶","阿華田","多多綠茶"};
  8.    string price [6]={"20","30","25","25","25","25"};
  9.    cout<<"=====超級飲料店====="<<endl;
  10.    cout<<"[飲料價目表]"<<endl;              
  11.    for(int i=0; i<=5; i++)
  12.    {
  13.            cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;              
  14.    }
  15.    system ("pause");
  16.    return 0;
  17. }
複製代碼

TOP

返回列表