Skip to content

Commit 16c5bc1

Browse files
Merge pull request wangzheng0822#263 from Devil0F/patch-1
添加注释,方便个人理解
2 parents d3431d6 + 170bf09 commit 16c5bc1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

c-cpp/06_linkedlist/Dlist/Dlist.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
************************************************************************/
88
#include<stdio.h>
99

10-
typedef struct DlistNode
11-
{
12-
struct DlistNode *prev;
13-
struct DlistNode *next;
14-
int data;
10+
typedef struct DlistNode //双向链表中每一个节点
11+
{
12+
struct DlistNode *prev; //节点前项指针
13+
struct DlistNode *next; //节点后项指针
14+
int data; //数据
1515
}stDlistNode;
1616

17-
typedef struct Dlisthead
17+
typedef struct Dlisthead //定义链表总体
1818
{
19-
int size;
20-
stDlistNode *head;
21-
stDlistNode *tail;
19+
int size; //链表长度
20+
stDlistNode *head; //头指针
21+
stDlistNode *tail; //尾部指针
2222
}stDlistHead;
2323

0 commit comments

Comments
 (0)