mardi 18 avril 2017

Script to test C++ programs

I want to write a script (Windows 10) whch 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.

Thanks for any help :)

Aucun commentaire:

Enregistrer un commentaire