Input file?

Hi,
I made a program that finds the root of a quadratic equation. I want to speed up my testing since I want to try alot of different senarios.
My program takes an input for tolerance (a double) on the command line, and then gets 3 double coefficients using cin at the beginning. I am new to this unix thing, since I normally test on Windows. Someone told me I can create a batch file to feed numbers into the cin. My concern at first a was tolerance, but If someone can show me how to feed numbers from a bat into my program, I can hardcode the tolerance in for testing purposes.

The only special thing is after it sends in the three doubles, my program will execute to the end. Then the program must start again, and the next three taken in.
Thanks,
Chris

P.S. Not sure if it makes a difference or not, but I am using the g++ compiler.
Last edited on
Topic archived. No new replies allowed.