View Single Post
Join Date: Oct 2004
Posts: 348
Reputation: paradox814 is an unknown quantity at this point 
Solved Threads: 4
paradox814's Avatar
paradox814 paradox814 is offline Offline
Posting Whiz

Re: finding the smallest number

 
0
  #5
Nov 12th, 2006
Originally Posted by joeprogrammer View Post
You can't do this:
  1. if ((menuItem >= 'A' || 'a') && (menuItem <= 'C' || 'c'))
....
actually many compilers (including mine) will let you do it, even though it is considered bad form.
Reply With Quote