The function system() executes a program.
For example in Windows if the executable is in C:\bin
Code:
system("C:\\bin\\wgnupl32.exe");
In Linux/Unix if the executable is in /bin
Code:
system("/bin/gnuplot");
The string in the argument to system should be the same that you would use from a command line. You can include arguments to the application within the string.
Dave