文件名称:Calculatorcode
介绍说明--下载内容均来自于网络,请自行研究使用
Java程序计算器是:图形界面与数学计算相结合。图形界面的实现:考虑到按钮多而易混的问题,就选择了用数组来完成实现,在数字进行运算时,考虑的我们一般的计算器都是通过按按钮显示数字的,所以要有个类来获得按钮上的数字,由此可知还需要一个获得按钮上的运算符号,获得数字和运算符号上的按钮是放在链表里的,通过链表的节点不同来识别是数字还是运算符号,一般是第一个节点里存放的数字是第一个参加运算的数,第二个是放的运算符号,第三个是放的第二个参加运算的数,程序设计的优点是:条理清晰,容易理解,容易修改。这样设计的缺点是:不能很好的体现java的面向对象的特点。-Calculator Java program are: a graphical interface with a combination of mathematical calculations. Implementation of the graphical interface: buttons, taking into account the many questions and易混, on the choice of finish with the array to achieve, to carry out operations in the figure, the Administration will consider all our ordinary calculator by pressing the button to show the figure, so there must be a Class to get the button on the figure, can be seen also required to receive the button on the operator symbols, figures and symbols on the button operations on the list are in, and through the node list to identify a number of different computing or symbols generally is the first storage node in the figure is the first take part in several operations, the second is putting the symbol of the operator, the third place are the second take part in several operations, the merits of program design are: the clarity of easy to understand, easy to modify. Disadvantage of this design are: jav
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Calculator code.doc