链表结构的几种编程风格

看到的有两种,所以记下来了,以后慢慢添加。

1
typedef int ElementType;
typedef struct Node *PtrToNode;
struct Node {
    ElementType Data;
    PtrToNode   Next;
};
typedef PtrToNode List;


2

typedef struct Node{
int Data;
struct Node *Next;

}List;
List L; List *Ptrl;

不知道哪种风格比较好,个人更喜欢第二种风格,因为第一种实在令人觉得困惑。


原文地址:https://www.cnblogs.com/kwan/p/6201238.html