12345678
void doCmd(const string &par1, const string &par2) { const string exampleCommand = "prog.exe" + " " + par1 + " " + par2; const int exitCode = system(command.c_str()); // ... }