1 Star 0 Fork 0

besti1923 / beishizhi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
InToPoseTest.java 495 Bytes
一键复制 编辑 原始数据 按行查看 历史
好名字 提交于 2020-12-06 00:13 . 8.4
package Tree;
import junit.framework.TestCase;
import java.util.Scanner;
public class InToPoseTest extends TestCase {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("请输入中缀表达式(各数字和字符间用空格分开):");
String s = scan.nextLine();
String s1 = InToPose.transform(s);
System.out.println("后缀表达式为:" + s1);
System.out.println("计算结果为:" + PoseCalculate.Calculate(s1));
}
}
Java
1
https://gitee.com/besti1923/beishizhi.git
git@gitee.com:besti1923/beishizhi.git
besti1923
beishizhi
beishizhi
master

搜索帮助