I have a global reference to an ofstream object(which i can change to ostream if reqd)
In a fn.,i want to set the value of this global reference i.e.
void func(ostream &fout)
fcout=fout;//this doesnt work.How to do this part?
I tried ostream &fcout;
That too didnt work.