translate to c++