Skip to main content
gamedev.net
🔒 Locked

Parameter Problems

Started by Grat Nov 22, 2001 at 1:43 PM 1 replies 550+ views
Original Post
Grat
Grat
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.
Oluseyi
Oluseyi
C/C++ always passes arrays by reference.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.