Page 7 of 7

Re: JForce vs. GyroVorbis

Posted: Thu Nov 06, 2008 4:50 pm
by MarauderIIC
programmerinprogress wrote:@ MarauderIIC, Now I know 8-), that's actually is a much better way of doing it, no code duplication at all!
The 2nd one's better. Cin will enter a failstate if a non-integer is typed. If it's not a failstate, then it had an integer. If that integer is >= 0 && < 10 (my bad, I didn't check for a negative in the code) then it must be a single digit, right? :)