结构的声明

第一种声明方式:标准,正规的

struct person{int age;float height;};

第二种声明方式,相当于匿名的结构,一般只用一次,而且放在主函数里

struct{int age;float height;}p2;

第三种声明方式

typedef struct Emp{int age;}Employee;

第四种声明方式

typedef struct{int age;}Employee;

原文地址:https://www.cnblogs.com/tyty/p/4892860.html