Pages: [1]   Go Down
Author Topic: guys I gut this question please clarify it to me.  (Read 341 times)
0 Members and 1 Guest are viewing this topic.
Malaysia
Offline Offline
Sr. Member
****
Karma: 7
Posts: 393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i actually open the Stepper.h and stepper.ccp file that is being supplied with the arduino IDE but i dont understand it. could someone be kind enough to clarify it for me.

what im wondering is what does this mean?

Code:
this->
Logged

California
Offline Offline
Faraday Member
**
Karma: 92
Posts: 3442
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.fredosaurus.com/notes-cpp/structs/arrow.html
Logged

Offline Offline
Edison Member
*
Karma: 19
Posts: 1041
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it means "The instance variable, not the local variable"
Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1285
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

'this->' is a pointer to the object (class instance) that the code is running in.
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Malaysia
Offline Offline
Sr. Member
****
Karma: 7
Posts: 393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks guys. now i know what it means.
Logged

Pages: [1]   Go Up
Jump to: