Messing around with C++