reading structure members through a loop followed by writing

I take all the members of the structure and make a make array after for each loop I do the necessary calculations but I can’t write back to the structure. Is it even possible?