Hi, I'm trying to simulate a movie theater program where customers enter the theater, wait on line, and enter the theater based on what movie they're seeing and if they're able to fit. To serve my guests, i need to move them from the line they are on to the movie of their choice. Like I said, every time a new party is being "served" there's a lot of logic checking for which theater and if there's enough room to seat the party, so without hardcoding thousands of lines i would like to use a function. I have functions to display the occupancy of the theaters, but unlike the display function i need to make actual changes to the variables it's calling.
I believe I have to pass each object in by reference, but I'm just wondering what is the syntax