C++ survival cookbook