main.cpp
/// <summary>
/// This function deletes the first element of the singly linked list.
/// If the list is empty, the (empty) singly linkes list remains unchanged.
/// </summary>

This function deletes the first element of the singly linked list.
If the list is empty, the (empty) singly linkes list remains unchanged.
This function deletes the first element of the singly linked list . If the list is empty the ( empty ) singly linkes list remains unchanged .
void deleteFirstElement() {
	struct measurement *newHead;
	if (head != NULL) {
		newHead = head->next;
		free(head);
		head = newHead;
	}
}
void deleteFirstElement ( ) { struct measurement * newHead ; if ( head != NULL ) { newHead = head -> next ; free ( head ) ; head = newHead ; } }
<summary>
This function deletes the first element of the singly linked list.
<summary > This function deletes the first element of the singly linked list .
// TODO: Implement this function! // This pointer will eventually hold a reference to the successor of the current head. // Eventually means: In case there's no head at all, we actually won't need this pointer. // Temporary reference to successor of current head. // Free memory of current head // Set head of list to successof of previous head.