C++ Codes