Posted by Sleepless Snowman on July 21, 1999 at 23:38:58:
In Reply to: Functions as Parameters posted by VTKingpin on July 21, 1999 at 23:32:09:
: Can anyone give me a hint on how to pass an ofstream variable into the ShowWindow function? Since we are calling it from within the WindowList Class, I was not sure how to pass my output file to it, to dump my output there...
I guess you are trying to redirect your output to a file? How about saving a few brain cells and just do proj2 < input.txt >output.txt
where input.txt would contain a list of commands you would issue to your interactive menu and output.txt is where all the output that would have been displayed to your screen would now end up....
hope that helps...unless you're doing something "creative..." :)