|
Re: How To Implement Axis Camera In Iterative Robot
Quote:
Originally Posted by masoug
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
|