Why doesn't the if else statement work? Please help...

YESH.CPP

deleted post

Creating such if-else logics is tricky. Remember you're talking to a compiler through C++, not another person. The compiler will not be able to generate the correct true or false you want from your conditions.

I suggest you approach the problem a different way, perhaps through a variable which you then compare one at a time( it's not a lot of code if you do it the smart way )

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.