View Single Post
Old Jun 6th, 2007, 6:17 AM   #2
357mag
Hobbyist Programmer
 
Join Date: Mar 2005
Posts: 148
Rep Power: 4 357mag is on a distinguished road
Yeah, I think I discovered why the program is reporting that the longest word was "Office". Its comparing character codes. The letter 'O' comes after the letter 'M' and thus has a greater ASCII code.

But is there a way to write the program so it will show which word is the longest(has the most characters in it)?
357mag is offline   Reply With Quote