S
Steven C
ofstream blah;
IS:
if (blah == NULL)
{
}
THE SAME AS:
if (!blah.is_open())
{
}
I think the answer is NO since blah will never equal NULL, since I
could not find a operator for ofstream for == and blah is a instance
of a class and not a reference or a pointer therefore the statement
blah == NULL makes no sense.
IS:
if (blah == NULL)
{
}
THE SAME AS:
if (!blah.is_open())
{
}
I think the answer is NO since blah will never equal NULL, since I
could not find a operator for ofstream for == and blah is a instance
of a class and not a reference or a pointer therefore the statement
blah == NULL makes no sense.