A brief intro to smart pointers, covering both auto_ptr and the Boost smart pointers. Every C++ programmer should know what these are. If you don't, you owe it to yourself to spend some quality time with some good C++ books....
The first function simply toggles the characters at the point between "." and "->". Not terribly useful. The second function is a little more interesting. You can put the point by a struct-type variable which is or isn't a...
The other day at work we ran into a nasty little bug that was quite tricky and chewed up quite a few hours of a few people's time. So I thought that as a service to you, my loyal reader, I would post about it and warn you of this...
I'm working with some C code that is quite well-written but makes a lot of use of some fairly complicated #define macros. Macros are discouraged by the coding guidelines, but they are a necessary evil here. They could've been...
Here's what I did (based on a combination of info at http://h8300-hms.sourceforge.net/ and The legOS HOWTO installation page) to build GNU binutils, gcc, and brickOS and associated tools on Mac OS X Tiger 10.4.3 with Xcode 2.2:...
Having built a simple Mindstorms robot, but not having the ability to program it, I bought a Lego Mindstorms USB IR tower on eBay. I can't wait for it to arrive so I can start messing around with RCX Code, NQC, brickOS (formerly...