[ubuntu-za] I need to teach C++ programming on Linux rather than on windows

Charl Wentzel charl.wentzel at vodamail.co.za
Mon Nov 5 07:01:54 UTC 2012

On 05/11/2012 08:22, Nico Michael wrote:
> When I tried to do a Multiple Inheritance example the wheels fell off 
> at the deceleration stage
> |class||FighterJet ||: ||public||MilitaryAirCraft||, ||public|Weapons
Hi Nico

As far as multiple inheritance goes, here's an extract from my code:

class TEventBufferTemp : public TEventBuffer, protected TBuffer

         virtual ~TEventBufferTemp();

         // Initialisation
         virtual bool            InitBuffer();

         // Buffering
         virtual bool            AddEvent( TEventEntry * Event, unsigned 
int EventNo = 0 );
         virtual TEventEntry *   GetNextEvent( bool &Error );
         virtual bool            ClearLastEvent( bool FreeEvent );

         virtual bool            DestroyEntry( void ** Entry );

What you have done seems perfectly correct.  Is this the declaration? 
Can you give me a bit more of the code?

I only do C++ with Linux using the gcc/g++ compiler and would gladly 
help you with getting things going.  I'm am however a fan of CMake and 
Eclipse, which nicely integrates a lot of tools for the major part of my 
development.  But sometimes I need to build things from the very bottom 
including creating make files, compiling and linking manually. If you 
want to teach a course and want to provide a good bottom-up 
understanding, I suggest you consider starting there.

Contact me off list, then we can chat.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20121105/789bbe1e/attachment.html>

More information about the ubuntu-za mailing list