cpp mode