So I have a function called isEmpty()
to check if a specified array has been filled with variables.
bool isEmpty() const;
This is:
bool Array::isEmpty() const
{
if(elemData == NULL)
return true;
else
return false;
}
I'm trying to call it in my main.cpp
so that I can send the output of isEmpty
to cout
, but I can't work out how to call it. I've tried a bunch of different methods but I feel I'm shooting in the dark, and I can't find any similar examples elsewhere.
How can I do this?