Multi-File Program (Need help fixing)

This post has turned into a complete waste since I changed a LOT due to many updates/corrections from the professor on the project.
Last edited on
//
Last edited on
//
Last edited on
//
Last edited on
//
Last edited on
//
Last edited on
do your normal g++ stuff
then
a.out > text.txt
this will write the output to a text document.
Last edited on
If you were to actually call writeFile, that would probably be a good start.
//
Last edited on
Take a look at main();
You open and close the files. You don't actually have any code to alter the files.
#include "WriteFile.h" needs to be in Proj4.cpp.
Then you need to actually use it inbetween the open and close file.
The a.out is done manually on the command line. It takes cout and puts it into a file.
Last edited on
//
Last edited on
You call the function by calling the function. None of the standard library code is mysteriously invoked for your code with the correct parameters -- you have to call it. Having the source code in the project is not calling the function.

In your fifth post, the line you've bolded and marked "took this out" you call the function, although calling the function from within the function is not something you want to do here. You need to call it from main.
Last edited on
Topic archived. No new replies allowed.