資源簡(jiǎn)介
代碼片段和文件信息
#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;
評(píng)論
共有 條評(píng)論