C语言没有bool类型

2020-08-24  本文已影响0人  烟花繁江尘辗
处理方式1:

​ 导入头文件 #include <stdbool.h>

处理方式2:

​ 自己定义

#ifndef __cplusplus
 
typedef char bool;
#define false 0
#define true  1
 
#endif
上一篇 下一篇

猜你喜欢

热点阅读