91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

C 餐飲管理系統

資源截圖

代碼片段和文件信息

#include?
#include?
#include?
#include?
using?namespace?std;
class?Restaurant
{
private:
????char?location[50];
????char?phone_number[20];
????char?evaluates[200];

public:
????void?Search();
????void?Set();
????void?evaluate();
};
class?Customer
{
private:
????int?desk;
????char?dishes[20];
????int?queues;
????char?write_evaluate[200];
????static?int?total;
public:
????Customer();
????void?order();
????void?write();

};
class?Waiter
{
private:
????int?job_number;
????char?name[25];
????char?sex[5];
????char?phone_number[20];
public:
????void?Search();
????void?Set();

};
class?Menus
{
private:
????static?int?sums;
????int?number;
????int?price;
????char?dish_name[30];
public:
????friend?void?Customer::order();
????void?Search();
????void?Set();
????void?show();
};
int?Customer::total=0;
int?Menus::sums=0;

//****全局函數***//
void?Menu()
{
????cout<????cout<????cout<????cout<????????cout<????cout<????????cout<????cout<????cout<????cout<????cout<????cout<????cout<}

void?Search()
{
???system(“cls“);
????cout<
???cout<<“?????????1???查詢餐廳信息“<???????cout<
???cout<<“?????????2???查詢服務員信息“<???????cout<
???cout<<“?????????3???查詢菜單“<???????cout<???????cout<<“?????????4????查看評價“<???????cout<
???cout<<“?????????5???返回上一級菜單“<???????cout<
???cout<<“?“<<“請選擇:“<???int?choice;
???Restaurant?restaurant;
???Waiter?waiter;
???Menus?dish;
???cin>>choice;
???switch(choice)
???{
???????case?1:?restaurant.Search();break;
???????case?2:?waiter.Search();break;
???????case?3:?dish.Search();break;
???????case?4:?restaurant.evaluate();break;
???????case?5:?Menu();break;
???}
}
void?Set()
{
????system(“cls“);
????cout<????cout<<“??????????????1?添加菜品“<????cout<<“??????????????2?添加服務員“<????cout<<“??????????????3?添加餐廳信息“<????cout<<“??????????????4?返回上一級菜單“<????cout<<“?????????請選擇:“<????Menus?dish;
????int?choice;
????Waiter?waiter;
????Restaurant?restaurant;
????cin>>choice;
???switch(choice)
???{
???????case?1:dish.Set();break;
???????case?2:waiter.Set();break;
???????case?3:restaurant.Set();break;
???????case?4:?Menu();break;
???}
}
void?orderdish()
{
????Customer?customer;
????customer.order();
????//system(“cls“);
????Menu();
}
void?customer_evaluate()
{
????char?evaluate[200];
????cout<<“請評價:“<

評論

共有 條評論