Run With Known Input The shell makes this easy Input data is in a file (say test.in) Program to be tested named prog ./prog < test.in Contents of test.in will be read from std::cin by prog