One more suggestion -- format your code properly and wayward braces will no longer be a problem. Don't indent 3 tabs then next line 1 tab, then 2 tabs.
Your first brace should be far left and every line after indented 4 spaces. Each and every { indent 4 more spaces sterting with the next line. When you get to a } unindent 4 spaces, then add the } on a line by itself.
Then your code is easier to read:
void Look::printShipPos()
{
if (checkFlag > 0)
{
static int shipPos = 0;
cout << shipPos << "_shipPos 1"<<endl;
shipPos = shipPos + 228;
cout << shipPos << "_shipPos added"<< endl;
}
if (shipPos == 228)
{
std::cout << "French Polynesia [Out of Transmission Range]"<<endl;
else if (shipPos == 456){
std::cout << "Maui, Hawaii [Out of Transmission Range]"<< endl;
}
//---------------------counter for fly-over access
checkFlag++;
cout <<checkFlag<< endl;
return;
}