exec exec -- Executes an external program. func::exec executes an external program and sets its output to the variable. Usage // Function form. void func::exec(string* output, string arguments...)