ide接口标准:struct 问题?

来源:百度文库 编辑:高考问答 时间:2024/05/03 21:10:27
typedef struct node{
char data;
struct node *next;//这里不要“struct”,直接写node *next行行,
为什么书上都是“struct node *next”这样写的
}ListNode;//node本身可以定义变量,为什么还要将
“node”typedef成“ListNode”用ListNode 去 定义变量呢?

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