Hey me again.
Ok for my gym program, i've got a struct like this
Code:typedef struct weights{ int reps; int sets; int weight; }exercises;
this is good because i can call it as follows exercises benchpress.reps = 5;
Now suppose i want to take this one step further and have a struct which holds the information for a weights routine as opposed to just a single exercise. How do i go about this. Each routine would have a different number of exercises. Im not sure how to add this other level to stucts.
I'd like to have a struct of routines, that i could call with
routines.chestAndTriceps
in this sub heading if you like would be a list of mabye 7 exercises all of wich ideally are individual members of the exercises struct.
I dont even really know if its possible and im not 100% sure of what im asking for or how to put across what im looking.
But if my some miracle you understand, id appreciate a push in the right direction