Original Post
Could someone please help me with this problem in C++. I have my main code in one source cpp file, and the class functions in another, with the class prototype in a header file. However, i need one of my class functions to lookup and alter a list of structures, which have been defined in the main code. How do i pass an array of structures through as a parameter to this function by reference? The structure prototype is also in its own header file, so that can be referenced to in the class cpp file. Post back if this doesnt make any sense.