code in C++