I'm analyzing a sketch that has sentences like
this->pin=pin
what does "->" mean?
Thanks.
I'm analyzing a sketch that has sentences like
this->pin=pin
what does "->" mean?
Thanks.
(*this).pin
Google
member access operator C++
aarg:
(*this).pin
Excuse me, but I don't know that the asterisk mean or what it does in the language (besides multiplication).
It de-references a pointer.
example: let's say we have structure 'myStruct' and let's say 'pinNumber' was a member in the structure.
You can access the member using:
myStruct.pinNumber ( note the period . )
If 'this' is a pointer, you can set it to the address of a function.
struct test myStruct, *this=&myStruct;
These then would be equivalent:
myStruct.pinNumber this->pinNumber (*this).pinNumber