Cielsky
V2EX  ›  问与答

VSCode 使用 Code Runner 插件在自带终端运行结果不正确

  •  
  •   Cielsky · Jan 23, 2020 · 2352 views
    This topic created in 2376 days ago, the information mentioned may be changed or developed.

    代码是把中缀表达式转换为后缀表达式

    测试样例: 1+((2+3)*4)–5

    code runner 插件运行在自带终端中:1 2 3 + 4 * +

    F5 在系统 cmd 窗口运行结果:1 2 3 + 4 * + 5 - 这个是正确结果

    代码如下: https://paste.ubuntu.com/p/gpjXCGz5hg/ image.png

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5778 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 06:11 · PVG 14:11 · LAX 23:11 · JFK 02:11
    ♥ Do have faith in what you're doing.