Chapter 4. The Basic Library

[ LiB ]

Chapter 4. The Basic Library

On the one hand, C++ is great because it's so flexible; on the other hand, since it is so flexible, it doesn't have much built into the basic libraries. C++ is sorely lacking in the areas of both string processing and precision timing. (The base C++ timer uses a resolution of one second, which is almost useless for game programmers.) Sure, C++ has come a long way from standard C strings (I'm sure you just shudderedI did), but it still has a long way to go before it is even half as useful as some of the more robust string-based languages, such as Perl.

In this chapter, you will learn to:

  • Create multiplatform 64-bit integers

  • Create multiplatform time functions

  • Create flexible timer objects

  • Use C++ strings

  • Extend the functionality of C++ strings

  • Log errors and other events

[ LiB ]


MUD Game Programming
MUD Game Programming (Premier Press Game Development)
ISBN: 1592000908
EAN: 2147483647
Year: 2003
Pages: 147
Authors: Ron Penton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net