韩顺平讲的,用数组模拟栈,再用栈做一个简单的计算器https://www.bilibili.com/video/BV1E4411H73v?p=35 其中韩顺平给出的代码有一些问题,当计算形如A - B * C + D这种式子的时候结果会出错,比如计算: 5 - 2 * 3 + 1 计算结果为-2 原 Read More
posted @ 2021-04-22 19:31 imissinstagram Views(81) Comments(0) Diggs(0)