View Single Post
Old Feb 22nd, 2005, 5:53 AM   #1
Esmirna
Newbie
 
Join Date: Feb 2005
Posts: 10
Rep Power: 0 Esmirna is on a distinguished road
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?
Esmirna is offline   Reply With Quote