So, I have to create a cpp file that uses my script to search for someones name. I'm pretty new to this so I don't know much but this is what I currently have. Also I have to use system(). Here is my code
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main (int argc, char *argv[]) {
system("./findName.sh" + argv[1] );
return 0;
}
<string>. Why not create astd::stringwith the full command you want to pass tostd::system?