妈妈死了伤心图片:struct 问题?

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

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