Why doesn't Console.Read() return the number entered?

前端 未结 5 426
[愿得一人]
[愿得一人] 2020-12-11 14:32

this is my program that i wrote in C# in visual studio 2010 Ultimate and 2008 Team System:

class Program
{
    static void Main(string[] args)
    {
                 


        
5条回答
  •  囚心锁ツ
    2020-12-11 14:53

    As the documentation clearly states, Read() returns the index of the Unicode codepoint that you typed.

提交回复
热议问题