AGH!
USE A DIFFERENT NAME FOR YOUR CHAR VARIABLE.
Sorry, I can't believe no one's caught this yet. You can't use operator as the name of your char variable, because operator== is a function call for classes. Your compiler thinks you are calling the function operator== in every if statement, and then complains at the fact that there's no object, no parentheses, and no argument. Change the name to oper and see if it works.
USE A DIFFERENT NAME FOR YOUR CHAR VARIABLE.
Sorry, I can't believe no one's caught this yet. You can't use operator as the name of your char variable, because operator== is a function call for classes. Your compiler thinks you are calling the function operator== in every if statement, and then complains at the fact that there's no object, no parentheses, and no argument. Change the name to oper and see if it works.
Comment