My random bits of C++ code