• 大小: 5.36KB
    文件类型: .cpp
    金币: 1
    下载: 0 次
    发布日期: 2021-02-21
  • 标签: 人事  系统  

资源简介


资源截图

代码片段和文件信息

#include 
#include 
#include 
 
struct emp{
int id;
char name[50];
struct emp * next;
// struct emp * prev;
};
 
struct emp * initList();
 
struct emp * addListTailNode(struct emp * head);
 
struct emp * deleteListNode(struct emp * headint id);
 
struct emp * searchEmp(struct emp * headint id);
 
int printList(struct emp * l);
 
int printNode(struct emp * p);
 
struct emp * sortList(struct emp * head);
 
int getListLen(struct emp * head);
 
int writeToDisk(struct emp * head);
 
struct emp * readFromDisk();
 
int menu();
 
int usage(struct emp * head);





 
int main(){
struct emp * head;
head=readFromDisk();
usage(head);
return 0;
}
 
struct emp * initList(){
struct emp * head;
head=(struct emp *)malloc(sizeof(struct emp));
head->next=NULL;
return head;
}
 
struct emp * addListTailNode(struct emp * head){  
int id;  
char name[50];   
struct emp * p * last  * check;  
last = head;

评论

共有 条评论