怎样的 双字节、单字节类型,才能在gcc中编译通过? 我用 WORD和byte,编译器都说没有定义。

antimicro 2005-03-25 10:14:05
如题
...全文
150 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
yjh1982 2005-03-25
  • 打赏
  • 举报
回复
typedef unsigned int DWORD;
typedef signed char BYTE;
whyglinux 2005-03-25
  • 打赏
  • 举报
回复
WORD and BYTE are declared in <windef.h> header file. Open the file to see how they are defined and then define them in your header file.
collecte 2005-03-25
  • 打赏
  • 举报
回复

WORD = short 双字节

byte 就用 char 好了,单字节。
dongpy 2005-03-25
  • 打赏
  • 举报
回复
那你自己定义好了。

typedef unsigned char BYTE;
typedef int WORD ;

24,856

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧