some C++ tips