IF question

Would this work with an IF statement?

1
2
if(a+b !> c)
{}
No.

The list of available operators in C++ is at
https://en.cppreference.com/w/cpp/language/expressions
and !> isn't one of them.

From the look of it you could just use <= instead!


Some programming languages let you define your own operators. C++ isn't one of them. Yet.
Topic archived. No new replies allowed.