实例 C++小于比较运算符

x
 
#include <iostream>
using namespace std;
int main() {
  int x = 5;
  int y = 3;
  cout << (x < y); // returns 0 (false) because 5 is not less than 3
  return 0;
}
                    

输出结果

0