关于结构体的思考

来源:互联网 发布:博士德汽修软件 编辑:程序博客网 时间:2024/05/21 06:30

我以前,喜欢用

typedef struct _Node
{
int data;                /*值域*/
struct Node *next;       /*链接指针*/
}Node, *Pnode;


可是,实际使用中发现,真正好用的是:


最原始的:

struct Node
{
int data;                /*值域*/
struct Node *next;       /*链接指针*/
};


这种最原始的用法,可以避免各种编译器报错,以后我都推荐使用最原始的这种。


0 0