关于typedef struct 和 struct
两者在c和c++中区别很大的。
如(在c和c++中):
typedef struct student
{
int mark;
}sss;//这里的sss不是结构体变量,而是一个类型,即 struct student=sss;
struct student
{
int mark;
}sss;//这里的sss是结构体变量
两者在c和c++中区别很大的。
如(在c和c++中):
typedef struct student
{
int mark;
}sss;//这里的sss不是结构体变量,而是一个类型,即 struct student=sss;
struct student
{
int mark;
}sss;//这里的sss是结构体变量
评论