结构的声明

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

struct person{int age;float height;};

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

struct{int age;float height;}p2;

第三种声明方式

typedef struct Emp{int age;}Employee;

第四种声明方式

typedef struct{int age;}Employee;

posted @ 2015-10-19 19:58  滕云  阅读(254)  评论(0编辑  收藏  举报