View Single Post
  #9   Spotlight this post!  
Unread 29-08-2010, 20:51
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: How To Implement Axis Camera In Iterative Robot

Quote:
Originally Posted by masoug View Post
So then how is that different than
Code:
camera = AxisCamera::GetInstance()
?

I heard about "initialization list", but what/why is this a case to use it? What about AxisCamera class that it has to bee initialized as a reference?

Thanks!

-Masoug
references can only point to one thing in there life, and you must set it at the very beginning. If you'd used a pointer, you could do that, since pointers can point to many things in their life

The GetInstance returns a reference, so it has to be a reference or a pointer
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote