|
|
back to boardCommon BoardC# INPUT Let's suppose we want read 6 integers from stdin. Is it true that we have to do following in C# ? String s = Console.ReadLine(); String[] str = s.split(' '); int a = int.parse(str[0]); int b = int.parse(str[1]); ... it looks terrible, comparing to C++'s cin >> a >> b >> c >> d >> e >> ... Is there clever way to read from stdin in C#? |
|
|