Description: Arithmetic expression parser
Description: The code includes a portable tokenizer like the StreamTokenizer in Java. It parses and interprets an arithmetic expression expressed in a flexible C-like syntax.-Arithmetic expression parser
Description: The code includes a portable tokenizer like the StreamTokenizer in Java. It parses and interprets an arithmetic expression expressed in a flexible C-like syntax.
Platform: |
Size: 4096 |
Author:SC |
Hits:
Description: JAva基本的数据类型和基本操作相关源代码打包,像一些标识符、变量、赋值语句和赋值表达式、算术运算符、数值类型转换、字符数据类型及其运算、特殊字符的转义序列表示、字符型char数据与数值型数据之间的转换、从输入对话框获取输入、计算贷款支付额、整钱兑零、显示当前时间、适当的注释和注释风格、缩进和空白等内容,在源代码中都有所体现。
-JAva basic data types and basic operations related to the source code package, like a number of identifiers, variables, assignment statements and assignment expressions, arithmetic operators, numeric type conversion, character data types and operations, special character escape sequence that character char data and numerical data conversion between the dialog box to obtain input from the input to calculate the amount of loans to pay the whole money against zero, display the current time, the right style notes and comments, indentation and blank, etc, in the source code are reflected. Platform: |
Size: 22528 |
Author:马浩然 |
Hits:
Description: JAva基本的数据类型和基本操作相关源代码打包,像一些标识符、变量、赋值语句和赋值表达式、算术运算符、数值类型转换、字符数据类型及其运算、特殊字符的转义序列表示、字符型char数据与数值型数据之间的转换、从输入对话框获取输入、计算贷款支付额、整钱兑零、显示当前时间、适当的注释和注释风格、缩进和空白等内容,在源代码中都有所体现。
-JAva basic data types and basic operations related to the source code package, like a number of identifiers, variables, assignment statements and assignment expressions, arithmetic operators, numeric type conversion, character data types and operations, special character escape sequence that character char data and numerical data conversion between the dialog box to obtain input from the input to calculate the amount of loans to pay the whole money against zero, display the current time, the right style notes and comments, indentation and blank, etc, in the source code are reflected. Platform: |
Size: 13312 |
Author:马浩然 |
Hits:
Description: java代码写的大数操作,主要实现大数的加减乘除。。值得一看-java code written in large numbers operation, the main achievement of large numbers of arithmetic. . Worth a visit. . Platform: |
Size: 3072 |
Author:王小亮 |
Hits:
Description: 使用Java制作计算器的实例,适合学习的Java源码下载。运用了Java2的图形界面技术和消息响应技术。通过图形界面技术,制作了计算器的用户界面。通过消息响应技术,实现响应用户的操作的功能,最终实现人机交互。用到的JAVA知识点有:窗口布局器GridLayout的应用,对按钮消息的监听和响应。
程序及注释
首先定义具有计算功能的类Calculator。在类Calculator中定义处理加减乘除运算的函数,分别命名为opAdd (),opSubtract(),opMultiply(),opDivide()。然后实现人机交互效果,要先定义实现用户界面类CalculatorGUI。通过Panel类的setLayout()函数进行用户界面的布局。此外,要通过actionPerformed(ActionEvent event))函数来实现对按钮事件的监听,并根据不同的按钮事件进行不同的运算。最后实现用户界面类与处理运算类的融合.,所以要在用户界面类(CalculatorGUI)中定义处理运算类(Calculator)的对象,这样,就完成了计算器的功能-Making use of Java calculator examples for learning Java source code download . Use of technology Java2 graphical interface and message response technology . Graphical interface technology , making the user interface of the calculator . By message response technology, features in response to user actions , and ultimately human-computer interaction . JAVA knowledge points used are: window layout is GridLayout applications for the button to listen and respond to the message .
Procedures and Notes
First class definition Calculator with calculating functions . Defined handler arithmetic operations in the class Calculator , named as opAdd (), opSubtract (), opMultiply (), opDivide (). Then realize the effect of human-computer interaction , the user interface must first define the implementation class CalculatorGUI. ( ) Function layout of the user interface by the Panel class setLayout. In addition, to be implemented on the button event listener through actionPerformed (ActionEvent event)) Platform: |
Size: 18432 |
Author:epudn10 |
Hits: