Question: how to do getch in c++?
Answer: Function Header: <conio.h>
Return Value: This function returns the character read from the keyboard.
The getch() function is used to catch a character from the keyboard. ... 
#include <conio.h>
#include <stdio.h>
void main()
{
int c;