实例 C++大于等于比较运算符

x
 
#include <iostream>
using namespace std;
int main() {
  int x = 5;
  int y = 3;
  cout << (x >= y); // returns 1 (true) because five is greater than, or equal, to 3
  return 0;
}
                    

输出结果

1