|
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.
|