misc C++ crap — tutorial stuff