【问题标题】:Error 'BOOL' does not name a type错误 'BOOL' 没有命名类型
【发布时间】:2016-12-09 18:13:05
【问题描述】:

这是代码:

/* the playing board is an array of these records */
typedef struct tagBOARD {
    char val;  /* the character on top face of die */
    char orient;  /* its orientation (0, 90, 180, 270 degree rotation) */
    BOOL Cused;    /* true if die was used in trying to make a word */
                  /* used only by computer in trying to find words */
    BOOL Uused;   /* true if player used letter by pushing button in */
    HWND hWindow;    /* handle of control corresponding to this die */
    char r, c;          /* row and column of this die */
    struct tagBOARD *link[8];  /* links to neighboring dice, some may be NULL */
   } BOARD;

但我总是收到此错误:

[Error] 'BOOL' does not name a type
[Error] 'BOOL' does not name a type
[Error] 'HWND' does not name a type

我应该怎么做才能解决这个问题?

【问题讨论】:

  • 包括适当的文件

标签: boolean


【解决方案1】:

至少

#include <windows.h>

我希望这是你的平台

【讨论】:

    猜你喜欢
    • 2011-12-10
    • 2013-09-09
    • 2015-12-01
    • 2014-12-16
    • 2016-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多