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.
我已将中缀转换为后缀表达式,即
3*(4+5)/10-1 into 345+*10/1-
我们如何从后缀表达式中读取10 ,因为字符串长度函数仅读取1而不是10,并且还有以下情况
3*(4+0)/10-1 into 340+*10/1- how we can differentiate that,
是40是四十或四个零,与10或一个零相同的情况
我正在使用涡轮 C++
请在(或任何分隔符)数字之间放置一个空格。 3 4 0 + * 10 / 1 -
3 4 0 + * 10 / 1 -