Tuesday, July 28, 2009

How do I use the value of a variable in a system command in c++?

Say that I am making aprogram in c++ that opens a web page through the use of a system command and I want the user of the program to type in the website they want using the cin operator. How would I use the variable holding the web address in the system command? Would I do somthing like this: system("start" websitevariable) ?

How do I use the value of a variable in a system command in c++?
process.start(%26amp;websitevariable) will open the page in the default web browser on the system.

apple

No comments:

Post a Comment