标准C语言中使用bool类型

来源:互联网 发布:办公表格软件excel 编辑:程序博客网 时间:2024/05/16 01:51
标准C语言中并没有关于bool的定义,不过bool可以自己定义的
#define bool int#define false 0#define true 1有这三个宏那么就可以了
1 0