在C#中,黑白的区别是什么?控制台应用程序中的readline [英] in c# what difference b/w read & readline in console applications

查看:60
本文介绍了在C#中,黑白的区别是什么?控制台应用程序中的readline的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写以读取特定值
例如::readline我们可以使用输入多个数字值,但是我想一次读取一个值是什么代码?
如果您知道,请发给我
电子邮件[已删除]

how to write to read particular values
eg :readline we can use enter many number value but i want to read one value at a time what is the code
if u know pls send me
email [removed]

推荐答案

您可能会使用一些谷歌搜索功能.

Console.Read-
从标准输入流中读取下一个字符.

Console.ReadLine-
从标准输入流中读取下一行字符.
You can probably get using little bit googling.

Console.Read -
Reads the next character from the standard input stream.

Console.ReadLine -
Reads the next line of characters from the standard input stream.


这篇关于在C#中,黑白的区别是什么?控制台应用程序中的readline的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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