简单计算器问题 [英] Simple Calculator question
问题描述
你好,
我想编写一个向用户显示菜单的程序。菜单应类似于以下内容:
欢迎来到SimpleCacl
< p style ="text-indent:0cm"> 按1添加两个数字
按2减去两个数字
< p style ="text-indent:0cm">
按3分割两个数字
按4可以多个两个数字
从用户那里读取选择,然后向用户询问两个数字。
将结果打印给用户。
任何帮助都非常棒,谢谢。
我想编写一个向用户显示菜单的程序。菜单应类似于以下内容:
欢迎来到SimpleCacl
< p style ="text-indent:0cm"> ...
从用户那里读取选择,然后向用户询问两个数字。
将结果打印给用户。 。
好吧,你在哪个时候被卡住?你必须知道如何开始使用b
。显示到目前为止你写的代码。
我认为这是一个控制台应用程序,对吗?如果没有,请说明你在写什么样的申请。的WinForms?其他?
$
请注意,我们不愿意被要求或预期免费写完整个课程,或者为学生完成课程作业。你必须努力赚取b $ b b,然后有人会帮助你克服困难点。
写一个简单的计算器程序是一个非常好的普通课程或教程
作业,如果你进行网络搜索,你会发现许多例子。
- Wayne
Hello,
I want to Write a program which displays a menu to the user. The menu should look similar to the following:
Welcome to the SimpleCacl
Press 1 to add two numbers
Press 2 to subtract two numbers
Press 3 to divide two numbers
Press 4 to multiple two numbers
Read in the selection from the user and then ask the user for two numbers.
Print the result to the user.
Any help would be great thanks.
Well, at which point are you stuck? You must have some idea of how to get
I want to Write a program which displays a menu to the user. The menu should look similar to the following:
Welcome to the SimpleCacl
...
Read in the selection from the user and then ask the user for two numbers.
Print the result to the user..
started. Show the code you have written so far.
I presume that this is a console application, correct? If not, state
what kind of application you're writing. WinForms? Other?
Note that we balk at being asked or expected to write entire programs
for free, or to do course assignments for students. You've got to make
an effort, then someone will help you overcome sticking points.
Writing a simple calculator program is a very common course or tutorial
assignment so you will find many examples if you do a Web search.
- Wayne
这篇关于简单计算器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!