Hey all,
If I have a pointer:
SomeObject *pointer;
and I want to access a method from that objects class, I would do it via pointer->someMethod.
However if I say that pointer = new SomeObject[numelements]; then when I want to do pointer[index]->someMethod it fails but pointer[index].someMethod works. I'm new to C++ so I'm not sure why this is the case.
Thanks