Thread
:
A noob question?
View Single Post
#
5
(
permalink
)
04-02-2008, 11:51 AM
WingedPanther
Join Date: Jul 2006
Age: 35
Posts: 3,379
Last Blog:
wxWidgets is NOT code ...
Rep Power:
37
Re: A noob question?
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())
__________________
CodeCall Blog
|
CodeCall Wiki
|
Shareware
|
Linux Forum
Programming is a branch of mathematics.
WingedPanther
View Public Profile
Send a private message to WingedPanther
Find all posts by WingedPanther
Sponsored Links