- #include<iostream>
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name [6]={"冬瓜茶","蘋果冰沙","檸檬愛玉","珍珠奶茶","阿華田","多多綠茶"};
- string price [6]={"20","30","25","25","25","25"};
- cout<<"=====超級飲料店====="<<endl;
- cout<<"[飲料價目表]"<<endl;
- for(int i=0; i<=5; i++)
- {
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
- }
- system ("pause");
- return 0;
- }
複製代碼 |