1、数据结构 -> 栈 -> 从不兼容的指针类型赋值[警告] / 提领指向不完全类型的指针[错误]
//错误
6 typedef int DataType;
7 typedef struct
8 {
9 DataType data;
10 struct StackNode next;
11 }StackNode,
LinkStack;
//正确
6 typedef int DataType;
7 typedef struct StackNode
8 {
9 DataType data;
10 struct StackNode next;
11 }StackNode,
LinkStack;