Error deleting node from first position in c
问题 As my many previous posts show, I am making a code to simulate a crazy 8's card game. I have a delete node function that is meant to delete the card from the deck being played. It works for cards after the first, but every time i try to delete the first card (node) from the list it will not delete and then messes up the whole program after it. Here is the function: void deleteNode(card *head, int coordinate) { card *current = head; card *temp = NULL; temp = current; int count = 1; while (head