\/\/o\/\/zers, attempting to port to C++ and not knowing much about
it...that's truly scary...
buf << "Running game on port " << port;
<< might be >> cuz I haven't played with it for a while.
Av fun, good luck an hey...enjoy life :)
Nathan Davies,
alamar@mail.netinc.ca
> Hello All:
>
> In the source code, I know that there are lines similar to:
>
> sprintf(buf, "Running game on port %d.", port);
> log(buf);
>
> I do understand that the purpose of this is to build a string in buf, and
> then send it to the log function. I'm currently working on porting the
> code to C++, and was wondering if anyone new of the corresponding C++
> equivalent to writing a stream to a buffer. With the normal cout and
cerr
> commands, the string is written out to screen immediately, insted of
being
> stored in a buffer.
>
> I apologize if this is a stretch for an appropriate question for this
> list. Thanks for any help.
>
> - Mike
+------------------------------------------------------------+
| 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