`

计算器制作JAVA版 (源代码)

阅读更多

this is the encoding of utf-8

The environment
Ubuntu 7.10
Eclipse v3.3
MyEclipse v6.0
jdk 1.6

The test environment
Ubuntu 7.10

cal.jar is the execute jar
cal.zip is the eclipse's project
in.txt is the test data
out.txt is the result
out_ans.txt is the format result

I don't give the format error test data,because I don't have too much time for creating this data. But I think design the test data is very hard and important.

That's all.
能够处理基本的语法错误,不能处理 divide zero.
处理运算包括了+ - * / ^ ( )
主要运用java库的高精度数据,所以可以支持任意长度
里面包含有一个可执行的jar文件
一个eclipse的完整工程(在导入工程的时候可能会因为环境和编码问题出现一些错误)
以及一些测试用数据

本程式在表达式结构错误判断处理上很差劲。

下载地址:
http://download.csdn.net/source/366586

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics