Store the address of previous node into the “prev” section of current node
问题 First, I defined my node using a struct called listrec. So each node has 3 parts: prev (used to store the address of the previous node), value (used to store the value), and next (used to store the address of next node). #include <iostream> using namespace std; struct listrec { struct listrec *prev; float value; struct listrec *next; }; listrec *head, *tail; Then, I used a loop to initialize the linked list (based on the number of nodes requested by the user. for (float i = 0; i < number; i++