char op = '+' cout << 6 op 1;
谢谢.
switch (op) { case '+': res = x + y; break; case '-': res = x - y; break; case '*': res = x * y; break; }