#include <stdio.h>
#include <Windows.h>//不加这句出编译错误
#include <WinDef.h>
int main()
{
printf("%d",sizeof(WORD));
system("pause");
return 0;
}
如果要在windows控制台上使用windows的数据结构 就要包含头文件windows.h否则编译错误
#include <stdio.h>
#include <Windows.h>//不加这句出编译错误
#include <WinDef.h>
int main()
{
printf("%d",sizeof(WORD));
system("pause");
return 0;
}
如果要在windows控制台上使用windows的数据结构 就要包含头文件windows.h否则编译错误
转载于:https://www.cnblogs.com/processakai/archive/2012/05/13/2498075.html