Jay59express
Senior member
Hello,
I have a class called ArrayNode, which is just a node in an array element (not important). In main I declare an array of ArrayNodes, like this:
ArrayNode a[126];
So I have 126 instances of ArrayNode, The question is, how can I pass this array of class instances to a function so the function has complete access to the array, including modifying it, and when the function ends, the original calling function has the updated version of the array.
Man I suck at explaining that, but I think you guys can figure it out 🙂
The function I am using is called Encode(a) if it helps.
Thanks!
I have a class called ArrayNode, which is just a node in an array element (not important). In main I declare an array of ArrayNodes, like this:
ArrayNode a[126];
So I have 126 instances of ArrayNode, The question is, how can I pass this array of class instances to a function so the function has complete access to the array, including modifying it, and when the function ends, the original calling function has the updated version of the array.
Man I suck at explaining that, but I think you guys can figure it out 🙂
The function I am using is called Encode(a) if it helps.
Thanks!