在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
猜你喜欢
  • 2021-05-07
  • 2022-12-23
  • 2021-04-29
  • 2022-01-03
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案