I have a char
array and I want to assign values from the console. Here's my code:
char[] input = new char[n];
for (int i = 0; i < input.Length; i++)
{
input[i] = Console.ReadLine();
}
But I'm getting the following error:
Cannot implicitly convert type 'System.ConsoleKeyInfo' to 'char'
Is there an easy way to fix this?
System.ConsoleKeyInfo
is? Hint: msdn.microsoft.com/en-us/library/… – Cespitose