#include<iostream>
int main ()
{
int a; // a是变量,
a = 11;// 11是字面值,
bool test = false;//test是变量,
test = true;//true 是字面值,
std::cout << (true && false) << std::endl; // 输出是0,&&是and
std::cout << (false || true) << std::endl; // 输出是1,||是或
return 0;
}
bool值的字面值
最新推荐文章于 2021-08-25 21:24:55 发布