‘c++’ Archive

Building Code (Part I) – Makefiles Tuesday 26th June 2007 Comments Off on Building Code (Part I) – Makefiles

Makefiles are one of the things that I don’t like spending a lot of time working with, they’re there to support writing software so they should be easy and simple to work with, but they should “just work”. So naturally, I’ve spent a lot of time working on a setup that “just works”. There are […]

Two things. Oh, and one other thing. Wednesday 20th June 2007 Comments Off on Two things. Oh, and one other thing.

There are two things you need to remember about smart pointers. First, they are not pointers, and second, they are not smart. One thing you should know about typedefs. They don’t define new types.

iostreams: Why so little information? 3 Comments

Most people’s exposure to C++ streams is with a “Hello, world” style program. std::cout << “Hello, world!\n”; From there you move on to how you can “<<” different types and how you can produce the equivalent of something like the code below with only about 3 times as many characters. printf(“%08x : %.17g”, uParm1, dParm2); […]