void CComputesDlg::OnButton1() { // TODO: Add your control notification handler code here int num1,num2,num3; char ch1[10],ch2[10],ch3[10]; GetDlgItem(IDC_EDIT1)->GetWindowText(ch1,10); GetDlgItem(IDC_EDIT2)->GetWindowText(ch2,10); num1=atoi(c
TEM DB 'input a decimal number ','$' TEM1 DB 'please choose one:1.16 2.BCD 3.gongyang 4.quit ','$' TEM2 DB 'result is:','$' STRA DB 0AH,0DH NUM DB 4 DUP(?),'H$' NUM1 DB '0123456789ABCDEF' NUM2 DB '0000000100100011010001010110011110001001' ;BCD码 NUM3
用c#写的 简易复数计算器 新手入门 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace 赵巍_复数计算器 { public partial class Form
java 编写计算器的简单程序//一个较为简洁的巧妙的计算器程序, import java.io.*; import java.awt.event.*; import java.awt.*; //需要解决的问题,数学的运算都有正负号的出现,在点击等号的时候就会有冲突,应该怎样解决,经验:双精度浮点型数据类型是会像后减一位。0.7会显示成0.69999999 public class app74 { static int i=0; static int j=0; static int k=-1;
计算器的代码部分 String num4 = num2.Text; double nim = double.Parse(num3); double nin = double.Parse(num4); double result = 0; switch (comboBox1.SelectedIndex) { case 0: result = nim + nin; break; case 1: result = nim - nin; result = nin - nim; break; case