Im intergrating alot of stuff in my program and I wanna make a ping thing inside of it, so I was thinking of starting it out with

Code:
char IP;
void inpute()
{
cin >> IP;
SYSTEM("ping IP")
}
I don't know how I would get the IP char infront of the system ping command so it would ping it. Any ideas?