Clique java to c++