I am having some problems with passing structs to functions.
In one function I take in a struct, which has a struct within it (call it A). In a function I only alter A (struct A contains arrays).
fucntion(takes in struct)
only alter A(struct within the struct as a param)
Pass the entire struct to another function.
Now before I pass it, I print some of the array contents. They are as expected.
Once in the other function, they all become 0.
The code is lenghty, but if I need to post it I will.
Maybe I am making a common error, which I dont realize.
Thanks.



LinkBack URL
About LinkBacks


