在gcc的编译器上使用bool值的话需要使用包含头文件<stdbool.h> 如果直接使用编译器会报错。 查看<stdbool.h>可以看到其实bool值只是一个define得常量 true 1 false 0 相关文章: 2022-12-23 2022-12-23 2021-06-18 2022-12-23 2021-06-14 2022-12-23 2022-12-23