Console Pinging program
Alright lets do this 
Im trying to make a simple C++ console program that, with the website name given in a string, it pings it. Heres my code sofar but i dont know how to make it ping the entered string
Is it even possible?
[php]#include <iostream>
#include <string>
using namespace std;
int main()
{
string website;
cout << "Enter the website you want to ping\n";
cin >> website;
system("ping ");
return 0;
}
[/php]

Im trying to make a simple C++ console program that, with the website name given in a string, it pings it. Heres my code sofar but i dont know how to make it ping the entered string

Is it even possible?
[php]#include <iostream>
#include <string>
using namespace std;
int main()
{
string website;
cout << "Enter the website you want to ping\n";
cin >> website;
system("ping ");
return 0;
}
[/php]