Translator from basic Java into C++