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.";
Reputation Points: 2614
Solved Threads: 687
Posting Expert
Offline 5,375 posts
since Jan 2008