Hello
How can I use a variable in the system() function?
Like this:
1 2 3
|
string a;
cin >> a;
system("ping ", a);
|
(Just an example).
Of course that code doesn't work, could someone show me an example of how to achieve this?
Thanks for reading,
Niely
Last edited on
Thanks all! :)
Worked like a charm.