Well, I wanted to know how I can run a program from a program, eg:
int main()
{
char *prog;
cout<<"Run: "; // --> g++ -o file1.cpp file2
cin>>prog;
[code to run prog with arguments]
}
I hope you understand what I mean.
I tried system("g++ -o...") but that doesn't work. thanks