update c++ mode