I am beginner in C++ and I have a question that is beyond my limits. I compile under GNU GCC. I use
#include
also known as:
In windows,
freopen("CON","r",stdin);
this code worked for me. It switches the stdin to console. P.S: The text file used to take input before this, must be ended with a newline.