嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
C语言实现--医院管理系统,运用了C语言的txt文件操作和单链表,代码中有清晰备注,参考此案例能解决解决一般C语言学者的系统编译问题。
typedef struct patient
{
char ID[10];
char name[10];
char bingli[300];
int cost[3];
struct patient * next;
}node1;
typedef struct storage
{
int amount[3];
float price[3];
}node2;
node2 init(node2 temp)
{
temp.amount[0]=20;
temp.amount[1]=20;
temp.amount[2]=20;
temp.price[0]=12.00;
temp.price[1]=25.80;
temp.price[2]=32.80;
return temp;
}
void mainmeun() //主菜单函数
{
printf("\n");
printf("********************************\n");
printf("1.注册新病人信息\n");
printf("2.查询病人信息\n");
printf("3.写病历\n");
printf("4.病人消费\n");
printf("5.列出所有病人信息\n");
printf("6.载入所有病人信息\n");
printf("7.保存所有病人信息\n");
printf("8.查询药品库存\n");
printf("0.离开\n");
printf("*********************************\n");
}