Khu*_*boo 14 c variables boolean declaration
如何在Linux平台上运行的C中声明bool数据类型的变量.我尝试了以下但它给出了一个错误:
#include<stdio.h> #include<string.h> bool factors[1000] void main() { }
Pot*_*ter 38
你只需要#include <stdbool.h>.
#include <stdbool.h>
Mic*_*fik 5
C没有bool类型.您可以int改为使用0表示false和1表示true.
bool
int
false
true
归档时间:
16 年 前
查看次数:
77461 次
最近记录: