some c++ code