-
copy of object?
if i pass my object >
Code:
Search Area mapnode[dwnMax][acrMax]
as a parameter of a function call as below >
Code:
SetFscore(mapnode);
Code:
void SetFscore(SearchArea mapnode[dwnMax][acrMax])
{
//do stuff
}
is it automatically passed by reference? or am i creating a copy of the whole array of objects during the scope of the function? i see that the object in the calling function is changed after the call which is what i want so i assume some kind of pointer or reference is implied automatically
i do not want to be adding masses of objects on the stack
-
You are passing what amounts to a pointer to a SearchArea array. You are not copying the entire array.
-
Your multidimensional array doesn't match, eh? First it's the max acr/max dwn, then it's the max dwn/max acr. They are probably the same number, but I was bored and thought I'd point it out.
-
haha, i will edit that, just sloppy typing the example in, i had cleared it some lines to post....i am past letting those sort of bugs into my code now......i think...!