摘要: 用栈模拟符号树 支持带括号的式子运算 将符号作为根节点,数字作为叶子节点,符号越靠近根节点,其计算的优先级更高 #include <iostream> #include <stack> #include <unordered_map> #include <string> using namespac 阅读全文
posted @ 2021-10-06 22:08 pioner 阅读(56) 评论(0) 推荐(0) 编辑