简单的windows CE 计算器。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 计算器
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = DateTime.Now.ToString();
}
private void button1_Click(object sender, EventArgs e)
{
Button btn = (Button)sender;
textBox1.Text += "1";
}
private void button2_Click(object sender, EventArgs e)
{
textBox1.Text += "2";
}
private void button3_Click(object sender, EventArgs e)
{
textBox1.Text += "3";
}
private void button4_Click(object sender, EventArgs e)
{
textBox1.Text += "4";
}
private void button5_Click(object sender, EventArgs e)
{
textBox1.Text += "5";
}
private void button6_Click(object sender, EventArgs e)
{
textBox1.Text += "6";
}
private void button7_Click(object sender, EventArgs e)
{
textBox1.Text += "7";
}
private void button8_Click(object sender, EventArgs e)
{
textBox1.Text += "8";
}
private void button9_Click(object sender, EventArgs e)
{
textBox1.Text += "9";
}
private void button10_Click(object sender, EventArgs e)
{
textBox1.Text += "0";
}
private void button11_Click(object sender, EventArgs e)
{
textBox1.Text += " " + "+" + " ";
}
private void button12_Click(object sender, EventArgs e)
{
textBox1.Text += " " + "-" + " ";
}
private void button13_Click(object sender, EventArgs e)
{
textBox1.Text += " " + "*" + " ";
}
private void button14_Click(object sender, EventArgs e)
{
textBox1.Text += " " + "/" + " ";
}
private void button17_Click(object sender, EventArgs e)
{
textBox1.Text = "sin" + " ";
}
private void button15_Click(object sender, EventArgs e)
{
double r;
string t = textBox1.Text;
int space = t.IndexOf(' ');
string s1 = t.Substring(0, space);
char op = Convert.ToChar(t.Substring(space + 1, 1));
string s2 = t.Substring(space + 3);
double arg1 = Convert.ToDouble(s1);
double arg2 = Convert.ToDouble(s2);
try
{
switch (op)
{
case '+': r = arg1 + arg2; break;
具体设计要求为: (1) 仿照桌面 Windows 中的计算器编写 Windows CE5.0 中的... 简易加减计算器设计(数电... 11页 免费 计算器上的GT、CE、AC、... 4...
css+div做的简单windows计算器_互联网_IT/计算机_专业资料。css+div做的一个...class="daanniu">CE C ...
在Windows CE.NET 下设计一个简单的 计算器。 ? 二、实验内容 ? 创建一个嵌入式计算器程序,实现加减乘 除四则运算,并且运算次数可以进行多次, 如两个数加完...
windows mobile 就是基于 windows CE 的操作系统 NT 和 CE 都是一种架构, windows mobile, Windows XP ,Windows 2000,Windows 2003 就是他们的具体实现 简单点...
Windows CE 百科名片 WindowsCE 是微软公司嵌入式、移动计算平台的基础,它是一个...使绝大多数的应用软件只需简单的修改和移植就可以在 Windows CE 平台上继 续...
这意味着即使是简单的台式机应用也不能在 Windows CE 上运行,最小的台式机应用也需重新编译后才能在 Windows CE 设备上运行,这不仅因 为架构不同,也因为 ...
Windows 的计 算器使用方法 Windows 的计算器 一、进行复杂运算 我们平时使用计算器时,往往进行简单计算,如8×9=72。如 果复杂些,就一步步进行计算,如要计算(...
WINDOWS CE嵌入式系统 第一章 Windows CE简介 课件_计算机硬件及网络_IT/...无操作系统阶段 简单操作系统阶段(20’ 80年代) 实时操作系统阶段(20’ 90年代...
Windows计算器的使用_IT/计算机_专业资料。教你使用Windows附件中的计算器...一、标准型 (1)Backspace:退格,删除当前输入数字中的最后一位 (2)CE:清除,...
在图 1.7 中选择需要安装的组件,对于图中所选的组件,简单介绍如下: (1) Platform Builder:定制、开发 Windows CE5.0 的集成开发环境(IDE)。 (2) Share ...
热门文档