📄 11_16.cpp
字号:
#include <iostream>
using namespace std;
int main()
{ bool boolValue = true;
cout << "boolValue is " << boolValue << endl; //语句1:显示默认布尔值真
cout << "boolValue (after using boolalpha) is "
<< boolalpha << boolValue << endl ; //语句2:使用 boolalpha后显示布尔值
cout << "switch boolValue and use noboolalpha" << endl;
boolValue = false; //改变boolValue
cout << noboolalpha << endl; //语句3:使用noboolalpha
cout << "boolValue is " << boolValue << endl; //使用noboolalpha后显示boolValue
//重新使用boolalpha
cout << "boolValue (after using boolalpha) is "<< boolalpha << boolValue << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -