C++ code catas