C++ code misprint fixed