I am trying to write a program that takes a single character off the keyboard without having to press the enter key. The getch statement is supposed to do that but it does not. I am using Visual Studio 2008.
As an example:
char input;
Code:input = getch();
switch (input)
{
case 'A':
// Stuffing.
break;
case 'B':
// Stuffing.
break;
case 'C':
// Stuffing.
break;
}