摘要:
今天接着对链表进行进一步完善,对于上节中已经实现了对节点的删除操作,这次对这个操作进行升级,符合条件的都可以被删除(通过函数指针来实现),具体实现如下:list.c:#ifndef _LIST_H_#define _LIST_H_#include typedef struct node{ int data; struct node* next;} node_t;typedef void (*FUNC)(node_t*);typedef int (*FUNC2)(node_t*);//这个是用来判断是否节点符合条件的node_t* list_insert_front(node_t* ... 阅读全文
posted @ 2013-12-21 22:29
cexo
阅读(361)
评论(0)
推荐(0)