Okay, I'm getting a weird error with your declaration of char operator, but besides that, you need to research variables in C/C++. You have several times
x + y = z
This takes the value in z, stores it in y, and then adds x. But you never save it, so it doesn't so anything with that value. You want:
z = x + y
Then you will have that value in z, and can use it later.
x + y = z
This takes the value in z, stores it in y, and then adds x. But you never save it, so it doesn't so anything with that value. You want:
z = x + y
Then you will have that value in z, and can use it later.
Comment