some c++ code.