布尔类型对象可以被赋予文字值true或者false,所对应的关系就是真与假的概念。
我们通常使用的方法是利用他来判定条件的真与假,例如下面的代码: !-- frame contents -- !-- /frame contents -- #include iostream
using namespace std;
void main(void)
{
bool found = true;
if (found)
{
cout "found条件为真!" endl;
}
} 但是一些概念不清的人却不知道布...[ 查看全文 ]