Vague!
Does it fail to compile (possibly because target is another string literal and you cannot add pointers)
Does it compile and attempts to run and you get a windows error message.
Looks like you have a network issue or a security issue with your pc or something - I had no problem running your progarm (exactly as you have posted it).
Mind you I'm running Windows 7 - I'm just going to test it on XP
OH - I just realise - You calling the name of your program ping.exe aren't you??
Your working directory is the same as the one your program is in - this means that your program is recursively calling itself - instead of the real ping program.
Rename your program to MyPing.exe and see what happens.
Never use the system function. It's bad practice and is a huuuge security hole. What happens when someone places the program your calling with system( )? I suppose there might be no way to get arround it if you are using multiple exes in your project. But never use it for something like
system("PAUSE");
it would be so easy for a virus to replace something standard throughout windows computers.