Trying to figure out when the program is run more than once how to make it so that in outputfn function that the formatting only copies to output file once but variable information keeps copying with every new students information.
*there are other functions everything else works fine
This is a beginner course we haven't touch ios::app yet. I have ofstream declared globally, per professor, I'm running this program on a loop from main of about 6 functions. I need my output function to output the formatting such as "Name", "Scores", all that stuff and then create a list underneath of all the input from consecutive loops.