I am writing code and I am using a pointer to point to an object of a class I created. I want to have this pointer run a method, but I am getting an error of:
request for member 'ClassMethod' in 'ptr', which is of non-class type
Your error is happening due to the order of operations. The member access is coming before the dereference so you're trying to do the member access on the pointer.