codes in C++