Launch external application

I'm looking for a way to launch an external application on linux. (other than system)/ I've been looking for some time but haven't been able to find what I'm looking for. Basically I want something that does this
1
2
3
  string program;
  cin >> program;
  launch program;

Thanks for any help you can give!
Look at fork and exec or threads.
Topic archived. No new replies allowed.