actually yes..i'm taking this course and i dont really feel like im learning anything in it..
the whole question says that we should add a member function ReturnLastItem () to the UnsortedType ADT that returns the last element in the list. The function has the following prototype:
Preconditions: List is initialized and not empty.
Postconditions: List is unchanged.
this is all i know..and i have no idea how it should be done..
we should point to the last item and then retrieve it but i dont know how to point to that item if i dont know the size of the list??
plz help me out