After reading a linked list - what is an easy way to extract a particular part of the record, modify it, then save it back to the list? For example: I have a structure that looks like this:
struct playerinfo {
char name[15];
int current_rate;
int id_number;
struct playerinfo *next;
};
struct playerinfo *first,*current,*new;
Now, I would input the names of members, with their respective rates and identification numbers.
Then, I want to take the current_rate from a record, manipulate it, and return it. Is this an easy thing to do?
Ex: (THIS IS AFTER INPUT)
ID: 1
NAME: BISHOP
RATE: 1571
ID:2
NAME: JESTER
RATE: 1728
ID: 3
NAME: VIPER
RATE: 1400
Now - pull the RATE from BISHOP (1571) and the rate from JESTER (1728) and throw those into a function that will return different rates for each person.
Am I making this too hard for myself?
Thanks!