资源简介
基于VC6.0平台 C++ 语言编程 医院管理系统
代码片段和文件信息
#include
#include
#include
#include
#include //把日期和时间转换为字符串 用 法: char *ctime(const time_t *time);
#include
#include
#include
#include
#define Max 100
#define NOB “住院日期 姓名 性别 年龄 科室 房号床号 床位费 治疗费 药材费 输液费 手术费 合计“
#define NOC “出院日期 姓名 性别 年龄 科室 房号床号 床位费 治疗费 药材费 输液费 手术费 合计“
using namespace std;
template //template:模板,样板
class cNode //节点
{
public:
T data;
cNode *next;
};
template
class tList
{
public: //定义成员函数
tList();
void Create(); //创建链表
bool Empty() const; //判断链表是否为空
void Insert(const T e); //从尾部插入一个元素
cNode* GetcNode(int i); //返回第i个节点
bool Find(const T e); //在链表中查找某个值
~tList(); //销毁链表析构
cNode *head; //头节点
};
template
tList::tList() //类的成员函数的实现
{
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个节点
{
int k=0;
cNode *p;
p=head;
while(p && k {
p=p->next;
++k;
}
return p;
}
template
bool tList::Find(const T e) //在链表中查找某个值
{
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();//第二个登陆界面选择人员登录;
int adminLand();//管理员登陆界面
int adminWindow();//管理员相关操作
int doctorLand();//医护人员登录界面由D和N来区别后面跟随3位数字目前设定从1到500
int doctorWindow();//医生相关操作
int nurseWindow();//护士相关操作
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) ; //实时病况
void FindtheInfo(tList *tListInfo); //查询
void FindtheInfoByR(tList *tListInfo); // 查询按病房号
void FindtheInfoByI(tList *tListInfo); //查询按病号
void FindtheInfoByN(tList *tListInfo); //查询按姓名
void 属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 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\医生密码.txt
文件 402 2013-07-25 14:49 daima\在院病人信息存档文件.txt
文件 718 2013-07-25 14:49 daima\在院病人信息输出文件.txt
文件 346 2013-07-25 15:39 daima\在院病人费用信息存档文件.txt
文件 637 2013-07-25 14:15 daima\在院病人费用信息输出文件.txt
文件 6 2013-07-25 09:29 daima\密码.txt
文件 4000 2013-07-24 10:15 daima\护士密码.txt
- 上一篇:MFC银行管理系统
- 下一篇:功能全面的mfc Web浏览器
相关资源
- C++获取计算机的CPU ID,硬盘序列号等
- C++头文件转delphi工具 + 源码
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
川公网安备 51152502000135号
评论
共有 条评论