資源簡介
基于VC6.0平臺 C++ 語言編程 醫(yī)院管理系統(tǒng)

代碼片段和文件信息
#include
#include
#include
#include?
#include?//把日期和時(shí)間轉(zhuǎn)換為字符串??用?法:?char?*ctime(const?time_t?*time);
#include?
#include
#include
#include?
#define?Max?100
#define?NOB?“住院日期??姓名?性別?年齡?科室?房號床號?床位費(fèi)?治療費(fèi)?藥材費(fèi)?輸液費(fèi)?手術(shù)費(fèi)?合計(jì)“
#define?NOC?“出院日期??姓名?性別?年齡?科室?房號床號?床位費(fèi)?治療費(fèi)?藥材費(fèi)?輸液費(fèi)?手術(shù)費(fèi)?合計(jì)“
using?namespace?std;
template????????????//template:模板,樣板
class?cNode??????????????????????????//節(jié)點(diǎn)
{
public:??????????????????????????
T?data;
????cNode?*next;
};
template?
class?tList???????????????????????
{
public:???????????????????????????????//定義成員函數(shù)
tList();
void?Create();??????????????????????//創(chuàng)建鏈表
bool?Empty()?const;?????????????????//判斷鏈表是否為空
void?Insert(const?T?e);?????????//從尾部插入一個(gè)元素
cNode*?GetcNode(int?i);?????????????//返回第i個(gè)節(jié)點(diǎn)
bool?Find(const?T?e);???????????????//在鏈表中查找某個(gè)值
~tList();????????????????????????????//銷毀鏈表析構(gòu)
????cNode?*head;????????????????????????//頭節(jié)點(diǎn)
};
template?
tList::tList()?????????????????//類的成員函數(shù)的實(shí)現(xiàn)
{
head=new?cNode;
head->next=NULL;
}
template?
void?tList::Create()
{
????cNode?*p;
p=head;
p->next=NULL;
}
template?
bool?tList::Empty()???const?
{
return?(head->next==NULL);
}
template?
void?tList::Insert(const?T?e)?????//insert:插入
{
????cNode?*p*q;
p=head;
q=new?cNode;
q->data=e;
while(p->next)
{
p=p->next;
}
p->next=q;
q->next=NULL;
}
template?
cNode*?tList::GetcNode(int?i)??????????????//返回第i個(gè)節(jié)點(diǎn)
{
int?k=0;
????cNode?*p;
p=head;
while(p?&&?k {
p=p->next;
++k;
}
return?p;
}
template?
bool?tList::Find(const?T?e)?????????????//在鏈表中查找某個(gè)值
{
bool?flag=false;
????cNode?*p;
p=head->next;
while(p)
{
??????if(p->data==e)
{
flag=true;
break;
}
p=p->next;
}
return?flag;
}
template?
tList::~tList()
{
cNode?*p;
while(head)
{
p=head->next;
delete?head;
head=p;
}
}
static?int?a;
class?Info;
tList?tListInfo;
void?endWindow();
void?firstWindow();
int?secondWindow();//第二個(gè)登陸界面選擇人員登錄;
int?adminLand();//管理員登陸界面
int?adminWindow();//管理員相關(guān)操作
int?doctorLand();//醫(yī)護(hù)人員登錄界面由D和N來區(qū)別后面跟隨3位數(shù)字目前設(shè)定從1到500
int?doctorWindow();//醫(yī)生相關(guān)操作
int?nurseWindow();//護(hù)士相關(guān)操作
void?tkeychange();//密碼修改
void?clear();
void?ghostsave();
void?ghostload();
void?manage();
void?AddthePatientInfo(tList?*tListInfo);??//錄入病人信息
void?AddtheCaseInfo(tList?*tListInfo);??//錄入病情
void?SavetheInfo(tList?*tListInfo);??//保存
void?ModifythePatientInfo(tList?*tListInfo);??//修改病人信息
void?ModifytheCaseInfo(tList*tListInfo)?;?????//實(shí)時(shí)病況
void?FindtheInfo(tList?*tListInfo);??????//查詢????
void?FindtheInfoByR(tList?*tListInfo);?????//?查詢按病房號
void?FindtheInfoByI(tList?*tListInfo);????//查詢按病號
void?FindtheInfoByN(tList?*tListInfo);???//查詢按姓名
void
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-03-23?14:09??daima\
?????文件?????????690??2013-07-25?14:04??daima\1.txt
?????目錄???????????0??2014-03-23?14:09??daima\Debug\
?????文件??????729166??2013-07-25?22:30??daima\Debug\bitter.exe
?????文件??????950912??2013-07-25?22:30??daima\Debug\bitter.ilk
?????文件??????595148??2013-07-25?22:30??daima\Debug\bitter.obj
?????文件?????5528396??2013-07-25?14:44??daima\Debug\bitter.pch
?????文件?????1303552??2013-07-25?22:30??daima\Debug\bitter.pdb
?????文件??????320512??2013-07-25?22:30??daima\Debug\vc60.idb
?????文件??????143360??2013-07-25?22:30??daima\Debug\vc60.pdb
?????文件???????????0??2013-07-25?15:39??daima\Info.txt
?????文件???????????0??2013-07-25?14:56??daima\InfoGhost?1.txt
?????文件???????????0??2013-07-25?15:12??daima\InfoGhost.txt
?????文件???????64913??2013-07-25?15:35??daima\bitter.cpp
?????文件????????3401??2013-07-25?22:30??daima\bitter.dsp
?????文件?????????520??2013-07-25?22:30??daima\bitter.dsw
?????文件???????58368??2013-07-25?22:30??daima\bitter.ncb
?????文件???????48640??2013-07-25?22:30??daima\bitter.opt
?????文件????????1162??2013-07-25?22:30??daima\bitter.plg
?????文件????????4000??2013-07-24?10:15??daima\醫(yī)生密碼.txt
?????文件?????????402??2013-07-25?14:49??daima\在院病人信息存檔文件.txt
?????文件?????????718??2013-07-25?14:49??daima\在院病人信息輸出文件.txt
?????文件?????????346??2013-07-25?15:39??daima\在院病人費(fèi)用信息存檔文件.txt
?????文件?????????637??2013-07-25?14:15??daima\在院病人費(fèi)用信息輸出文件.txt
?????文件???????????6??2013-07-25?09:29??daima\密碼.txt
?????文件????????4000??2013-07-24?10:15??daima\護(hù)士密碼.txt
- 上一篇:MFC銀行管理系統(tǒng)
- 下一篇:功能全面的mfc Web瀏覽器
評論
共有 條評論