#include <stdio.h>
#include <Windows.h>//不加这句出编译错误
#include <WinDef.h>
int main()
{
 printf("%d",sizeof(WORD));
 system("pause");
 return 0;
}

 

如果要在windows控制台上使用windows的数据结构 就要包含头文件windows.h否则编译错误

 

相关文章:

  • 2021-10-07
  • 2021-08-28
  • 2021-12-30
  • 2023-01-18
  • 2021-12-05
  • 2021-04-24
  • 2021-12-12
  • 2021-07-16
猜你喜欢
  • 2022-01-21
  • 2021-08-11
  • 2021-11-04
  • 2021-12-17
  • 2021-04-30
  • 2022-01-15
  • 2022-12-23
相关资源
相似解决方案