#include <iostream> #include <stdio.h> #include <map> #include <stack> #include <string> #include <string.h> using namespace std; int main() { char str[1000] = { 0 }; map<char, int> priority = { {'\0', 0}, {'-', 1}, {'+', 1}, {'*', 2}, {'/', 2} };//用来记录运算的优先...