Victor Bazarov wrote:
[color=blue]
> Dirk Bruere at Neopax wrote:
>[color=green]
>> Yes, it's Xmas and I'm working...[/color]
>
>
> It's not Xmas yet.
>[color=green]
>> Got a problem (of course).
>> *****
>>
>> class CPlatform
>> {
>> private:
>> CActuator actuator0(0);[/color]
>
>
> This is an attempt to initialise a non-static member where there can be
> no initialiser. Read about initialising members properly.
>[color=green]
>> public:
>> ... };
>>
>> CActuator actuator0(0);
>>
>> I get errors when I try to construct a class variable with a parameter
>> inside CPlatform, but no error when I do the same just underneath it
>> (global variable).
>>
>> What's going on?[/color]
>
>
> Nothing. Learn C++. Read about constructors and initialiser lists.[/color]
Well, I have a lot of things to do.
Since I'm the tech guy in a startup company specialising in new VR tech I have
to be a Jack of All Trades. I'm doing the vision system (optics), motion control
(h/w electronic design and realtime s/w, plus mech), and audio DSP programming.
When we can afford a C++ coding monkey we'll get one.
Meanwhile, I'll ask around if I get a non-obvious (to me) problem.
Thanks.
--
Dirk
The Consensus:-
The political party for the new millenium
http://www.theconsensus.org