|
system(const char*)
this function in c++ works as follows -> system("c:\example.exe");
but i wish to pass a string instead of writing it -> system(myString);
where myString has paths that can be changed on running time.
how do i declare the string or what can i do to use a standar (std::string myString="hello") one in 'system' function?
|