[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: SV: [CPROG] Hjælp !!!



Hvis du laver en #ifndef er du jo helt sikker.

Det skal du generelt gøre, bruge så mange sanity checks som muligt.

Kun elektronerne ved, hvordan en cpu tænker...

/nino

Gitte Wange wrote:
> 
> Okay ... skal denne koden inkluderes i den headerfil der nedarves fra ..
> eller i de tre headerfiler der arver ???
> 
> Gitte
> 
> -----Oprindelig meddelelse-----
> Fra: Kim Brugger [mailto:sslug@sslug
> Sendt: 23. maj 2000 11:28
> Til: sslug@sslug
> Emne: Re: [CPROG] Hjælp !!!
> 
> Hej
> 
> Jeg tror jeg har forstået problemet, og i så fald skal du inkuldere noget
> ala dette i din header fil:
> 
> //start på header
> 
> #ifndef __MINHEADER
> #define __MINHEADER
> 
> [snip, hvor alt koden findes]
> 
> //slutningen på filen
> #endif
> 
> problemet opstår da header filen bliver inkluderet "flere gange" pga
> nedarvning.
> 
> --Kim
> On Tue, 23 May 2000, Gitte Wange wrote:
> 
> > Hejsa !
> >
> > Jeg sidder og er ved at lave noget rigtig gylle lige nu i C++ ... jeg er
> > ikke champ i nedarving og det kommer rigtig til udtryk nu. HVORFOR vil min
> > compiler absolut lave bøvl bare fordi jeg inkluderer den samme header-fil
> i
> > tre forskellige klasser (filen der nedarves inkluderes i de tre nedarvede
> > filer sagt på en anden måde) ... hvad er det jeg gør galt ???
> >
> > M.v.h. Gitte
> >

-- 
Venlig hilsen / Best Regards

--------------------------------
Bernino Lind
iSolve ApS
          sslug@sslug
--------------------------------
Rømersgade 7 kld
DK-1362 Copenhagen K
Denmark
[+45]  70 21 00 50
www.iSolve.dk
--------------------------------


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *