123456789101112131415161718192021
string List::Longest(Node* Current) throw (EmptyList) { else if (Head != NULL) sizestring = Head->Data; while(Current->Next != NULL) { if ((Current->Data).length() > size) { size = (Current->Data).length(); sizestring = Current->Data; } Current = Current -> Next; } return sizestring; }