how would i successfully pass an array of class objects? like what type would i need to declare to pass the array?
ie.
class exampleType{
...
};
..
exampleType example[20];
how would i pass the array to another function?
You will pass it the same way you would pass any other array to a function.
ex.
How to pass it to function
myFunc(example)
Possible function header
bool myFunc(exampleType *array)
OR bool myFunc(exampleType array[])
Last edited on