c++中有bool类型吗?
lxas 2001-04-17 02:12:00 我在《the c++ proguaming language》的4.2章里面看见里面有关于布尔量的描述,
可是不能用编译器编译。
void f(int a, int b)
{
bool b1=a==b;
//...
}
还说if a and b have the same value, b1 becomes true;otherwise,b1 becomes false.在印象中c++好像没有bool类型?请教各位这是怎么回事啊?