摘要: Node *create(){ DoubLink *list; Node *p, *pNew, *pHead; pHead = (Node *)malloc(sizeof(Node)); pHead->next = NULL; pHead->prior = NULL;//第一个节点 p = pHea... 阅读全文
posted @ 2013-04-25 15:15 纯洁的坏蛋 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Node *create(){ int n = 20; Node *pNew, *pTail, *pHead; pHead = (Node *)malloc(sizeof(Node)); pHead->next = pHead;//空链表 自己指向自己 pTail = pHead; //pTail... 阅读全文
posted @ 2013-04-25 13:51 纯洁的坏蛋 阅读(601) 评论(0) 推荐(0) 编辑
摘要: #include #include typedef struct Node{ int data; //数据域 Node *next; //指针域,指向下一个Node节点}Node;Node *create(); //创建一个单链表int deleteFromList(Node *linkList, ... 阅读全文
posted @ 2013-04-25 11:43 纯洁的坏蛋 阅读(415) 评论(0) 推荐(0) 编辑