C语言做的一个简单的系统

这个适合初学者去学习!!

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
//1、确定数据类型信息 
typedef struct patient
{
   
	char ID[10];     //编号  
	char name[10];    //姓名 
	char details[300];  //具体信息 
	int cost[3];      //话费金额 
	struct patient * next;
}node1;
typedef struct storage
{
   
		int amount[3];   //药品数量 
	int price[3];    //价格 
}node2;
node2 init(node2 temp)
{
   	
	temp.amount[0]=20;
    temp.amount[1]=20;
	temp.amount[2]=10;
	temp.price[0]=5;
	temp.price[1]=9;
	temp.price[2]=16;
	return temp;
} 
void mainmeun()
{
   
	//2、选择输入项 
	printf("\n");
	printf("*************欢迎使用医疗管理系统*******************\n");
	printf("1.注册学生信息\n");
	printf("2.查询学生信息\n");  //4、输出项
	printf("3.填写详细信息\n");
	printf("4.学生购买消费\n");//3、用于计算项 
	printf("5.列出所有学生信息\n");    //5、输出所以学生信息 
	printf("6.查询药品库存\n");
		printf("7.退出系统\n");
	printf("**************请选择操作项******************\n");
}
node1 * create(node1 *p1)  //注册学生信息 
{
   
	node1 *p;
	p=(node1 *)malloc(sizeof(node1));
	printf("请输入学生编号\n");
    scanf("%s",p->ID);
    while(p1->ID&&strcmp(p1->ID,p->ID))
	{
   
		p1=p1->next
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ヾ凉秋

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值