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