今天在Xcode中写C语言代码出现了:error: unknown type name ‘bool’ 上网搜了一下,是没有导入头文件的原因 #include <stdbool.h> 加上这个头文件就可以使用bool了。