#include<cstdio>
#include<cstring>
typedef struct Node{
int no;
char* name;
double salary;
int age;
char* birth;
Node* next;
};
void create(Node* s,int no,char* name,double salary,int age,char* birth){
Node *head=new Node;
head->no=no;
head->name=name;
head->salary=salary;
head->age=age;
head->birth=birth;
head->next=s->next;
s->next=head;
}
void insert_staff(Node* s){
Node* p=new Node;
char name1[10];
char birth1[12];
printf("请输入添加的员工号:\n");
scanf("%d",&p->no);
printf("请输入员工的姓名:\n");
scanf("%s",&name1);
p->name=name1;
printf("请输入员工的工资:\n");
scanf("%lf",&p->salary);
printf("请输入员工的年龄:\n");
scanf("%d",&p->age);
printf("请输入员工的出生日期:\n");
scanf("%s",&birth1);
p->birth=birth1;
Node* q=new Node;
create(s,p->no,p->name,p->sala
小型员工管理系统——C语言链表实现
最新推荐文章于 2024-08-03 22:21:32 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)