Ping commands

Mar 17, 2013 at 9:06pm
What is a ping command in C++? I am working on a project and it wants us to use a ping command.
Mar 18, 2013 at 5:29pm
Can someone answer this please?
Mar 18, 2013 at 5:35pm
Your problem statement lacks suitable context for the board to give you an answer.
Mar 18, 2013 at 5:37pm
Basically if you can't give us a problem, then GIYF (Google Is Your Friend) :)
Mar 18, 2013 at 5:40pm
Add a ping command which accepts a grid location and returns an indication as to whether or not something returned an echo in that location, ie, only a ship, bombed or not, should return an echo.

That is what I need to do, but I don't know what a ping command is.
Mar 18, 2013 at 5:42pm
In that context, ping is probably some boolean function that returns true if the grid is occupied and false otherwise. Assuming you're doing this for a Battleship-style game, ping is naval a term used to describe active sonar. The name Ping is arbitrary and is just named that way to reflect the imaginary "Battleship" domain in which you're working.
Last edited on Mar 18, 2013 at 5:43pm
Topic archived. No new replies allowed.