Hi, i called a function Print(cout) which is declared as


void Print(ostream &os) const
{
os << value;
}




This will print the output to the console, but what should i do if i want to send the output to a buffer, also file? What parameter shall i pass to the Print function? instead of passing "cout"?