比如下面这个:
typedef struct _test
{
struct _test *pNext;
struct _test *pPrev; int id;
int type;
int size;
char* buffer;
} test;
不知道上面这样定义双向链表对不对,来不及看书了!!!
我想实现添加节点,删除节点,和根据结构中的id进行查找的功能。多谢了!!!
一定给分!!!
typedef struct _test
{
struct _test *pNext;
struct _test *pPrev; int id;
int type;
int size;
char* buffer;
} test;
不知道上面这样定义双向链表对不对,来不及看书了!!!
我想实现添加节点,删除节点,和根据结构中的id进行查找的功能。多谢了!!!
一定给分!!!
typedef struct _test
{
struct _test *pNext;
struct _test *pPrev; int id;
int type;
int size;
char* buffer;
_test::_test()
{
pNext = pPrev = NULL;
buffer = NULL;
}
} test;