员工管理系统-数据结构课程设计.docVIP

  • 33
  • 0
  • 约9.08千字
  • 约 15页
  • 2018-09-02 发布于贵州
  • 举报
员工管理系统-数据结构课程设计

/*Linklist.h*/ #includestdio.h #includestdlib.h #include string.h #define TRUE 1 #define FALSE 0 #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef struct LNode { char id[20]; char name[10]; char sex[10]; char birth[10]; char edu[10]; char duty[10]; char phone[20]; char address[30]; struct LNode *next; }LNode,*Linklist;//定义节点类型 int CreatList(Linklist L) { Linklist p; p=(Linklist)malloc(sizeof(LNode)); if(!p) { return (0); } else { printf(请输入员工编号\n); scanf(%s,p-id); printf(请输入员工姓名\n); scanf(%s,p-name); printf(请输入员工性别\n); scanf(%s,p-sex); prin

文档评论(0)

1亿VIP精品文档

相关文档