可以自己定义 bool型:typedef enum { false, true } bool;或者利用 windows.h 里的 BOOL:#include #define bool BOOL这样也可以有了小写的 bool 型。