随笔分类 - C++
C++与C语言中struct 与typedef struct 应用区别(摘自csdn mpp_king)
摘要:typedef是类型定义的意思。typedef struct 是为了使用这个结构体方便。具体区别在于:若struct node {}这样来定义结构体的话。在申请node 的变量时,需要这样写,struct node n;若用typedef,可以这样写,typedef struct node{}NOD
阅读全文
浙公网安备 33010602011771号