// // Created by Virtus on 2024/2/21. // #include <iostream> #include <cctype> #include <string> #include <stack> using namespace std; int priority(char c) { // 优先级顺序#,$,+-,*/ if (c == '#') { return 0; } else if (c == '$') { return 1; } else if (c == '+' || c == '-') { return...