- #include<iostream>
- #include<iostream>
- #include<cstdlib>
- using namespace std;
- int main()
- {
- string name [6]={"青茶","水果茶","檸檬水","奶茶","水","綠茶"};
- string price [6]={"15","20","15","25","10","20"};
- cout<<"多喝水飲料店"<<endl;
- cout<<"[飲料價目表]"<<endl;
- for(int i=0; i<=5; i++)
- {
- cout<<"("<<i+1<<")"<<name[i]<<"\t"<<price[i]<<"元"<<endl;
- }
- system ("pause");
- return 0;
- }
複製代碼 |