初中生物七上教案:struct 问题?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/05 20:12:37
typedef struct node{
char data;
struct node *next;//这里不要“struct”,直接写node *next行行,
为什么书上都是“struct node *next”这样写的
}ListNode;//node本身可以定义变量,为什么还要将
“node”typedef成“ListNode”用ListNode 去 定义变量呢?

c++里可以直接写node,c不行