Wednesday, October 21, 2009

Funky Little ? Operator

cout << ( ( time == 0 time == 12 ) ? 12 )

This means that if time is 0 or time is 12, it will be represented with, or equal 12. Nifty!

No comments:

Post a Comment