I want to write a script (Windows 10) which will be testing my program. I have not found any suitable answer so I decided to open my own question.
I have files with input and output for my program eq.:
stud1.txt and stud1_out.txt alternatively.
My C++ program reads input from console (std::cin).
I know how to compare files (FC command) and how to run program from command line, but I have no idea how to pass on input data to a program which reads data using std::cin and then write it into the file to be able use FC command.
Thanks for any help :)