#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否则编译错误
相关文章: