I am trying to learn C# coming from C++. I am writing just some basic console stuff to get a feel for it and was wondering if it is possible to do simple chaining of inputs in C#. For example in C++:
cout<<"Enter two numbers: ";
cin >> int1 >> int2;
You could then just input 3 5 and hit enter and the values will be fine. In C# however I have to split it up(as far as I can tell) like this:
Console.Write("Enter the first number: ";
int1 = (char)Console.Read();
Console.Writeline("");
Console.Write("Enter the second number: ";
int2 = (char)Console.Read();
Maybe I am just missing something.