Paul, regarding using if's in C++. You don't necessarily have to use else whenever you are using a lot of if's.
This would work fine as well.
But, yes, I agree wih you on using a switch statement instead because you easily insert a break into it.Code:if( Choice == '*' ) cout << "Multiplication"; if( Choice == '/' ) cout << "Division"; if( Choice == '+' ) cout << "Addition";




Reply With Quote