计算器制作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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值