template <typename ItemType>
void StackType<ItemType>:: printLast() const
{
	if (topPtr == NULL)
		cout << "The stack is empty.\n";
	else
	{
		NodeType<ItemType>* location = topPtr;
		while (location -> next != NULL)
			location = location -> next;
		cout << "The last element is: "; 
		cout << location -> info << endl;
		cout << endl << endl;
	}
}

