在看C/C++的书或者试题时,有时会见到利用word或dword定义的变量,第一次看到的时候并不知其是什么,更不用说word或dword占几个字节了。幸好在VC安装文件夹下有相关的定义。如C:\Program Files\Microsoft Visual Studio\VC98\Include查看头文件WINDEF.H的定义:
typedef unsigned long
typedef int
typedef unsigned char
typedef unsigned short
typedef float
typedef FLOAT
typedef BOOL near
typedef BOOL far
typedef BYTE near
typedef BYTE far
typedef int near
typedef int far
typedef WORD near
typedef WORD far
typedef long far
typedef DWORD near
typedef DWORD far
typedef void far
typedef CONST void far
转自http://blog.sina.com.cn/s/blog_72eb2e9a0100pahs.html