test c++ functionality.