Fooling around in C++