This code has an error. If the list empties all of the way then rear doesn't point to null when it should. The delete function should be:...
Separate names with a comma.