I do aggressive programming so I must test sure output for sure enter. For which what I do is I compile my program with
g++ file.cpp and than I paste enter values in a brand new file known as
in.txt . And I merely get output for this enter by this command
./a.out < in.txt.
Downside is every time I would like to stick enter in enter file and carry out all this. And after doing so after I get output I must match it with appropriate output manually. I would like one thing if attainable like I simply run
./a.out after this I paste 2 factor
enter and second is
output . If applications output matches with given output than it ought to print
OK with output in any other case it ought to print
Verify Once more.
What I would like is I dont need to paste pattern enter in in.txt file what I would like is solely paste on terminal and it ought to settle for and provides me verdict.