Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试验证中缀表达式。
到目前为止,我已经开发了可以检测大部分无效中缀表达式的代码,但由于某种原因,“( ( ( ) ) ) 5” 的情况没有被检测为无效。
当有没有表达式的括号时,如何检测无效条件?