|
-
October 21st, 1999, 01:47 AM
#1
how to use ostream?
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"?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|