Java to C++ translator