[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: [PROGRAMMERING] [C++] parent object



On Wed, 27 Oct 2004, Kim Schulz wrote:

> [snip]
> 
> > Og hvorfor vil du det?
> 
> selve problemet er en større forklaring som jeg vil undlade at komme med
> her, men problematikken er at jeg skal gøre nogle forskellige ting alt
> efter om jeg objektet instantieret selv eller i et andet objekt.
> det er ikke noget at der bliver kaldt forskellige constructorer da det 
> er brugerdefinerede klasser og derfor ikke nogen jeg har adgang til at
> bestemme noget over. 

Hvis du ikke kan ændre koden er du vist solgt, men ellers plejer man at 
inkludere et "owner" felt et relevant sted i en constructor, f.eks.

Mads

-- 
Mads Bondo Dydensborg.                               sslug@sslug
Each generation has the right to determine its own culture. Culture isn't
just symphony orchestras, movies about dead British royalty and hard-bound
books. For some, culture is now also gaming, websites, chat and messaging
systems, TV shows, music and movies. 
                               - Jon Katz, Slashdot, on youth culture.



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 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] *