i am just starting out and i wrote a simple program to ask basic questions and than assemble them into a fully formed command line operation. i cant figure out how to pass the finished string to system() on my test program
at the end of the program directly before return 0 i have a line
cout<<finalstring;
system("echo finalstring");
the issue i have is the cout prints the contents of finalstring however the echo through system simply prints finalstring
note the final version will actually put the command directly into the command processor i am just using echo as a safety so i can see the logic is working.
if the system() command cant be used in this manner than i would like to know how to properly send the string to the commandline.