Typedef

From ElectroDragon Wiki
Revision as of 13:31, 20 November 2019 by Chao (talk | contribs) (Created page with "C 语言提供了 typedef 关键字,您可以使用它来为类型取一个新的名字。下面的实例为单字节数字定义了一个术语 BYTE: * typedef unsigned...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

C 语言提供了 typedef 关键字,您可以使用它来为类型取一个新的名字。下面的实例为单字节数字定义了一个术语 BYTE:

  • typedef unsigned char BYTE;