mce16
October 21st, 1999, 01:47 AM
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"?
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"?