Delete Last node at linked list (Copied from a site still not working)

Please format your code - the forum software has mangled it and it won’t compile! :slight_smile: