I'm trying to understand a linked list example, but get confused by the syntax. Can someone please explain the given code in detail?
Focus on the lines:
The ptr_to_struct->member syntax is a shorthand for (*ptr_to_struct).member.
The this is a C++ class keyword which is a pointer to the currently operative class.
Take a read through the tutorials http://www.cplusplus.com/doc/tutorial/
especially Classes (I) and Classes (II) -- particularly in part one there is a section on pointers, and in part two there is a section on this.