I figured it out on my own. Here it is:
#include <iostream>
#include <windows.h>
using namespace std;
void main()
{
string mystring;
mystring="Notepad.exe";
ShellExecute(NULL, "open",mystring.c_str(), 0, 0, SW_SHOW);
}
website: http://www.nitrohobby.com