View Single Post
  #1   Spotlight this post!  
Unread 17-10-2013, 22:18
adlasa's Avatar
adlasa adlasa is offline
President and Lead Programmer
AKA: Sasha
FRC #1458 (Red Ties)
Team Role: Leadership
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Bay Area
Posts: 35
adlasa has a spectacular aura aboutadlasa has a spectacular aura aboutadlasa has a spectacular aura about
Same initialization as declaration in constructor, why?

I was looking through the basic tutorial on C++ with an FRC robot.

The code:

Code:
public:
   RobotDemo(void):
      myRobot(1,2),
      stick(1)
The comments say these declarations have to be initialized in the same order as they are declared.

Why is this?
__________________
Computers run on smoke. When the smoke escapes the computers stop working.

Last edited by adlasa : 17-10-2013 at 23:01.
Reply With Quote