> if (operation != 'A' || 'a' || 'S' ||
There is no compare with a list type function, you need to compare with each one in turn
if (operation != 'A' || operation != 'a' || operation != 'S' ||
Look up the toupper() function
operation = toupper(operation);
then you would only need half as many comparisons.
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Offline 7,164 posts
since Dec 2005