I have a array of pointers
myclass* myclass_instances[100];
myclass_instances[i] = new myclass(...);
Now I have another class udp_networking
. Inside the methods of this class I want to call some methods on these myclass_instances
objects.
How should I declare a member in this class udp_networking
and how should I initialize it, which points to the same instances?