I have a pointer to array of objects. It looks like:
MyClass *myClass[ 10 ];
myClass[ 0 ] = new MyClass(); // init for each of myClass[0..9]
myClass[ 0 ]->field1 = "hello";
How can I pass "myClass" to a function by reference? I tried a few cases but it didn't work.
std::array<MyClass, 10>especially when passing it into a function.