> >Log << "1st part " << "second part" << Log;
> >(sending the log class to itself causes a flush, kind of a hack...)
>
> doesn't work. sorry to burst your bubble, any other ideas?
The io manipulator endl is commonly used to flush the stream.
It adds a newline to the end if the stream (generally something you
want to do anyways) and flushes the line. You would use it as
Log << ch << " just was toasted by " << killer << "." << endl;
You will need to include iomanip.h to use it.
Eric
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST