Example of Forward References
inline void List::push_front (int val)
{if (firstElement == 0) // adding to empty list firstElement = new Link(val, 0, 0);else // else add before first element firstElement->addBefore(val, this);
}
Previous slide
Next slide
Back to first slide
View graphic version