#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;
评论
共有 条评论