Refreshing myself with C++ code