array of class object

how would i successfully pass an array of class objects? like what type would i need to declare to pass the array?


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.


How to pass it to function

Possible function header
bool myFunc(exampleType *array) OR bool myFunc(exampleType array[])
Last edited on
Topic archived. No new replies allowed.