i'm having a little trouble grasping the concept of this. If someone could help it would be great.
Its part of my assignment...no i don't want u to do it for i just need help.
1. declare an ofstream foutput in main function
2. open a file in main function
3. call the member function to pass foutput to fout
4. close foutput in main function
heres the format we have to use
void Worker:: printOut(ofstream & fout)
{
fout << ....
}
i understand 1,2,and 4 but i don't understand what (ofstream & fout) is doing or how to pass foutput to fout.