#include <iostream>using namespace std;int main() { // 1.创建boo数据类型 bool flag = true; cout << flag << endl; // 2.查看内存空间大小 cout << "bool 占用内存空间大小为" << sizeof(flag) << endl; // 本质上 1代表真 0代表假 system("pause"); return 0;}