|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#3
|
|||
|
|||
|
Re: Team 67 C++ Example Code
-> and . can not be interchanged.
x->y() is a shortcut for (*x).y(), so you use . when x is an object, and -> when x is an pointer to an object. It is exactly the same as accessing members of a structure in C. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TBA]: Example Code Addition | SamC | The Blue Alliance | 5 | 15-07-2011 16:11 |
| Team 1114 Example C++ Code | Pat Fairbank | FRC Control System | 2 | 12-11-2008 22:30 |
| Example code | TEAM1949 | Programming | 10 | 15-03-2006 16:00 |
| Example gyro code released. | Kevin Watson | Programming | 60 | 17-03-2005 18:32 |
| Autonomous Code Example | Matthew_H | Robotics Education and Curriculum | 24 | 21-11-2003 10:02 |