该计算器用java实现
更新:现支持多位数的输入(用正则表达式提取输入中的数值,然后直接存入数值栈中)
GUI用swing实现,可识别括号优先级是用了双栈,一个栈存取操作符,一个栈存取数值
界面巨丑,待我学到更多后来更新此计算器。
主要是拿来练手的(这是第一个自己用代码实现GUI的小程序!!!)
主界面:
A simple calculator
License
onlyless/Calculator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple calculator
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published