返回列表 發帖
  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]={"15","20","15","25","10","20"};
  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

返回列表