test c++ code