Program for C++