如何在.net中进行编码 [英] how to do coding in .net

查看:73
本文介绍了如何在.net中进行编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在.net中创建科学计算器...
我不知道如何进行编码...我不知道要按下2个数字按钮....它显示在文本框中.... n执行计算器操作...

i hav to make a scientific calculator in .net...
i dont knw how to do coding...i wnt 2 knw wen i press a numeric button....it shows on textbox....n perform calculator operations...
kindly help..whosoever knw it..

推荐答案

您说,您不知道编码,然后又打算如何构造科学计算器?

人们已经尝试过了.阅读/学习编码后,请查看以下内容:
Rajshree编写的C#科学计算器

科学计算器
You say, you don''t know coding then how you intend to make a scientific calculator?

People have tried that earlier. Once you read/learn coding then have a look at these:
Scientific Calculator in C# by Rajshree

Scientific Calculator


制作Windows Form应用程序.
将几个文本框拖到窗体上.
制作几个类型为double的变量,以保存用户键入的文本框值.
添加TextChanged处理程序以检查文本框输入并将其转换为double类型,然后将其保存在变量中.
为希望计算器支持的每个功能添加一些按钮.
双击按钮以自动创建OnClick事件处理程序.
添加代码以使用存储在变量中的值在每个OnClick方法中执行所需的功能.
使用Convert.ToString可以使每个按钮的答案中都包含文本.
在MessageBox中显示文本答案.

这是要遵循的过程,但是每个步骤都需要花费一些时间来使用Google或MSDN进行研究.对于没有编程经验的人来说,这不是一件容易的事-这是什么样的课程?
Make a Windows Form application.
Drag a couple of textboxes on to the Form.
Make a couple of variables of type double to hold the textbox values typed in by the user.
Add TextChanged handlers to check the textbox inputs and convert them to type double, then save them in your variables.
Add some buttons for each function you want the calculator to support.
Double-click the buttons to automatically create OnClick event handlers.
Add code to perform the required functions in each OnClick method using the values stored in your variables..
Use Convert.ToString to make text out of your answers for each button.
Display the text answers in a MessageBox.

That''s the process to follow, but each step is going to require some time researching using either Google or MSDN. This is not an easy assignment for someone who doesn''t already have experience programming - what kind of class is this?


这篇关于如何在.net中进行编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆