W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
#include
using namespace std; int main() { bool isCodingFun = true; cout << boolalpha; // 打印为 true/false cout << isCodingFun << "\n"; // 输出 true cout << noboolalpha; // 将 cout 重置回打印 1/0 cout << isCodingFun << "\n"; // 输出 1 return 0; }