I'm using command prompt to run my program and from what I know that redirecting input file can be done like this: program.exe<input.txt
However, what I get is nothing except for the cout coding.
For example, in the command prompt, it will only appear "Please enter a number:<space>Please enter a character:<space>..." and so on, where the inputs should have appear at the <space>.
Any comments regarding this? Do I need to add codes to read the input file?
The problem here is about the missing inputs, but the program runs perfectly.
The inputs are sort of invisible.
Need help here. Thanks.