Sorry for another misleading title, found it hard to describe what it is. I am trying to have the user be able to type something in the console and have it add that to the end of a system() command. For example:
cout << "Input an ip in the form of xx(x).xx(x).xx(x).xx(x)" << endl;
cin >> ipstring;
system("ping");
Then have ipstring after ping so they user can type in what they want to ping. In java I think it would be something like:
system( "ping" + ipstring )