some c++ test code