Jan 11, 2017 at 2:01am
Is this syntax correct?
// return the number nodes
size_t Capacity () const
{
size_t j = Size();
size_t h = Excess();
return j+h+2;
}
Last edited on Jan 11, 2017 at 11:44am
Jan 11, 2017 at 8:26am
The syntax is correct if Capacity ()
is part of a class or struct. Note that Size()
and Excess()
also needs to be const.