Messing around in C++