正在加载图片...
74用 ty pede定义类型名 使用关键字 typed说明一个新的类型名,往往可以 在程序中简化变量的类型定义。 例如: typedef struct student I int num; SREC; REcX,y,*p;相当于 struct student x,y*p; 语句 p=(struct student*)malloc(sizeof(struct student)); 可以写成:p=(REC) malloc( sizeof(REC))使用关键字typedef说明一个新的类型名,往往可以 在程序中简化变量的类型定义。 例如: typedef struct student { int num;  }REC; REC x , y , *p ; 语句: p=(struct student *)malloc(sizeof(struct student)); 可以写成:p=(REC *) malloc(sizeof(REC) ) 7.4 用 typedef 定义类型名 相当于struct student x,y,*p;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有