run C++ apps multiple iterations