解决办法加上头文件#include<stdbool.h>,就可以直接使用类型 bool = true/false宏定义#define bool int#define false 0#define true 1