finish the C++ file