how can i pass a variable to command?
ex..
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
string ip
cout << "Enter an ip";
cin >> ip;
system("ping ip"); //// this is the problem. how do i enter the value of "ip" here?
system("PAUSE");
return EXIT_SUCCESS;
}