For the difference between the . and -> operators, I suggest checking out
Member Access Operators: . and -> (C++) . Essentially, the difference has to do with whether you're dealing with a pointer or not and needing to dereference.
Quote:
|
The –> operator dereferences the pointer. Therefore, the expressions e–>member and (*e).member (where e represents a pointer) yield identical results (except when the operators –> or * are overloaded).
|