1.比较大小 如果是int或者bool, // int类型比较大小 const int a = 1; if (a == 1) {code...; } // bool类型比较大小 const bool flag =