This isn't a code snippet. If possible, please change the thread type to a regular old thread as opposed to a code snippet.
The && operator doesn't work that way. You want something like this:
if (a > b && a > c)
cout << "First value is the max.";
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711