Down Rodeo said:
As for the "function is private" errors... well... how much do you about OO programming?
Luckily that turned out not to be the real problem. The ios_base errors were just the result of passing around an ofstream object by-value.
Other than that all I did was add 0 to return; in a couple spots and <iostream>, <fstream>, using namespace std;