C++ test program