資源簡介
賓館客房:
管理<賓館的客房信息包括客房號、客房類型、客房價格、空閑情況、客人姓名、客人身份證號、入住時間、退房時間,預付費用等信息。試設計一賓館客房管理系統統,系統以菜單方式工作,使之能提供以下功能:
客房信息的錄入功能←
客人入住登記←
客人退房結算←
客房信息瀏覽功能,瀏覽全部客房的信息←
客房信息查詢:查詢空房間情況、按姓名或房間號查詢←
客房信息的刪除、修改功能←
代碼片段和文件信息
#include
#include
#include
#define?RU?“%s\t?%s\t?%d\t?%d\t?%s\t?%s\t?%s\t?%s\t?%d\t?%d\n“p->numberp->type&p->price&p->dayp->namep->idp->intimep->outtime&p->cost&p->house
#define?CHU?“%s\t?%s\t?%d\t?%d\t?%s\t?%s\t?%s\t?%s\t?%d\t?%d\n“p->numberp->typep->pricep->dayp->namep->idp->intimep->outtimep->costp->house
FILE?*fp;
typedef?struct?user
{
????char?number[20];//房間號
????char?type[20];//類型
????int?price;
????int?day;//居住天數
????char?name[20];//登記姓名
????char?id[20];//身份證
????char?intime[20];//入住時間
????char?outtime[20];//預計離開時間
????int?cost;//預計花費
????int?house;//房間打掃情況
????struct?user*?next;
}?US;
typedef?struct?The_users???//typedef?可以定義結構體別名
{
????char?id[11];?//賬號
????char?pwd[20];?//密碼
????char?name[15];//姓名為字符串
- 上一篇:C語言面試題.doc(近百道題)
- 下一篇:c++ 貪吃蛇大作戰
評論
共有 條評論