| 
			
	
	
		
使用bool类型定义变量时,编译出错。错误信息显示如下:      'bool' undeclared (first use in this function)(Each undeclared identifier is reported only once
 for each function it appears in.)
   C语言(或C++)里本身没有bool这种布尔类型。有些编译器可以识别,那也是因为编译器自己定义了bool类型,比如:#define bool int。   C语言里,一般用整型变量来实现布尔型变量的功能。当用条件语句,如if,进行判断时,值为0时返回false,其它都返回true。   
	    
    
 |