To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1824
    Re: c++, classes —Frank Passek
   Hi Michael, if you want to use a declarator list in the constructor you have to use the following syntax: /******* Implementation of the constructor ***...***/ LightSensorHead::Lig...ensorHead( const Motor::Port motorport, const Sensor::Port (...) (23 years ago, 5-Apr-01, to lugnet.robotics.rcx.legos)
   
        Re: c++, classes —Michael Wisse
   Hallo Frank, yes, it helped, thanks. But I still don't understand the background. Normally, in c++ you can initialize your private components in the body of the constructor or with a initialization list, like in your suggestion. Reagards. Michael (...) (23 years ago, 10-Apr-01, to lugnet.robotics.rcx.legos)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR