about the program on C++