C语言 | typedef

【摘要】 C语言typedef用新的类型名代替原有的类型名//指定用Integer为类型名,作用与int相同。
typedef int Integer;

//指定用Real为类型名,作用与float相同。
typedef float Real;
C语言允许程序设计者用一个简单的名字代替复杂的类型形式命名一个新的类型名代表结构体类型typedef struct
{ int month; …

C语言typedef用新的类型名代替原有的类型名

//指定用Integer为类型名,作用与int相同。
typedef int Integer

//指定用Real为类型名,作用与float相同。
typedef float Real
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享