how exactly do you increment a value in a linked list node?
for example, if i had 2.20 in one element and 3.30 in the next how do i add these together?
the first element's number is printed, not the total. I'm guessing because each node holds a "total" therefore a new one is being assigned to each one. I have a total value in my structure. How do i combine the total value?Code:double number; temp->total += number; // when i attempt to print it: printf("%.2f", start->total);