View Single Post
  #6 (permalink)  
Old 04-02-2008, 10:14 PM
MPax MPax is offline
Newbie
 
Join Date: Mar 2008
Posts: 3
Rep Power: 0
MPax is on a distinguished road
Default Re: A noob question?

Quote:
Originally Posted by WingedPanther View Post
You're right that your statement is incorrect, since the first > evaluates to 0 or 1, which probably isn't greater than word2.length().
Try:
else if (word1.length() > word3.length() && word3.length() > word2.length())
Thank you that worked perfectly. I appreciate the help.
Reply With Quote