my C++ test code