I\'ve always wondered how to write the \"A ? B : C\" syntax in a C++ compatible language.
\"A ? B : C\"
I think it works something like: (Pseudo
In c++ there's no actual if part of this. It's called the ternary operator. It's used like this: ? : ; For your example above it would look like this:
C = A > B ? A : B;
This article on wikipedia also discusses it: http://en.wikipedia.org/wiki/Ternary_operation