我想在C#中创建字母和整数的程序? [英] I want to create program in C# for alphabet and integers?

查看:72
本文介绍了我想在C#中创建字母和整数的程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,这是Mia在这里!

我必须制作一个字符和字母的程序。例如:如果有人输入1,2,3那么输出就是你输入三位数:1,2,3



如果用户输入ABC那么输出应该是你输入字母:a,b,c



但我想用数组创建这个程序



请帮帮我



我希望得到肯定的答复



谢谢



我尝试过:



我在visual studio中尝试使用数字和字母范围但是失败

Hello Everyone, This is Mia Here!
I have to make a program for character and alphabets. for example: if someone inputs 1,2,3 then the output would be you enter three digits: 1,2,3

If user input ABC then output should be that you enter alphabets: a,b,c

But I want to create this program by using arrays

Please Help Me

I am hoping a positive reply

Thanks

What I have tried:

I tried in visual studio by using range of digits and alphabets but got fail

推荐答案

我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!

首先看看你需要做的各种事情:

1)用户输入。

2)检查输入并确定它是什么。

3)用数字,字母或其他类和数字回应。

每个阶段都做分开,并测试它 - 这就是你已经知道怎么做的小工作!



如果你遇到一个具体的问题,那么请问一下这个问题和我们会尽力帮助。但是我们不打算为你做这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
Begin by looking at the various things you need to do:
1) input from user.
2) examining the input and deciding what it was.
3) responding with the class "digits", or "alphabet" or "other" and the number.
Do each stage separately, and test it - that way it's "little jobs" that you already know how to do!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


这是一个让你入门的例子: [控制台阅读]并: [ Console WriteLine ]
Here is an example to get you started: [Console Read] and: [Console WriteLine]


这篇关于我想在C#中创建字母和整数的程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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