Help the beginner. There are two structures:
struct valuenode { char elements [5]; int power; }; struct indexnode { char elements [5]; int elementindex [10]; };
There is still a function that generates some array structures of the first type (valuenode), here is her announcement:
int pushlevelnodes (valuenode * valuesarray,int beginatindex=0,char toplevel=1) {
This function uses only the subarray of elements [5], the power is not off. Can this function use in generating an array of structures of the second type? The difference between the structures in the further processing of the values of other functions, the initial array is generated the same way. I would not want to duplicate a fairly large code generation. If you can poke a nose like. Thanks in advance.