I'm trying to use execvp which has the prototype:

int execvp( const char *file, char *const argv[]);

I'm using a C++ style string to get input from the user. How can I convert this C++ style string into something that execvp can use?