strange error...

This is a discussion on strange error... within the C++ Programming forums, part of the General Programming Boards category; the code that checks for the shot at the beginning of my else if statement is...check_shot..
it looks like this..
...

Post your whole program here; I usually don't like that, but in this case it seems to be the easiest way to go But make sure that you use code tags!
i.e. [ c o d e ] /*stuff here*/ [ / c o d e ]
without the spaces

Everything I highlighted is something that appears to not make sense. You also have some logic errors b/c the program would not let me choose an area to hit, it just kept saying "press any button to continue" in a LOOP.

**PS I changed your code just for my sake to Capitilize the Ocean and Ship objects, so just uncap them for your changes I made several other changes to your code but tell me if you want me to post the whole bit**