bool?
-
X1 ? answer1 : answer2 If X1 is true the expression will return answer1, if it is not it will return answer2 and I think you are new so see C++ Reference[^].
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
the ?: is a ternary operator(takes three operands), which is known as Conditional Operator. Its the simplified form of a simple if statement. Check the MSDN Link[^] for more info. Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
It actually means you need a good
C
tutorial. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]