View Single Post
  #4 (permalink)  
Old 04-02-2008, 11:51 AM
dcs dcs is offline
Programming Expert
 
Join Date: Mar 2008
Posts: 371
Rep Power: 6
dcs has a spectacular aura aboutdcs has a spectacular aura about
Default Re: A noob question?

Well, at least now we know you're talking about C++ and not C.
Code:
else if else if (word1.length() > word3.length() > word2.length())
I'm hoping the 'else if else if' is just a typo.

With regard to the condition, you need to separate it a bit.
Code:
if (word1.length() > word3.length() && word3.length() > word2.length() )
Reply With Quote