🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10202

Re: Herencia en C :-)

#10202
From: rmj
Date: Thu, 21 Mar 2002 07:47
18 lines
1160 bytes
> Bitmap:
>    struct Bitmap {
>    ....
>    unsigned int uXres;
>    };
> 	struct JPEG {
>    struct Bitmap *pBitmap;
>    ...
>    };
> 
>    GetXresBitmap ( (Bitmap *) &(*JPEG) );

Es esto codigo real? No deberias pasar una variable como parametro en lugar de 
un tipo?

struct JPEG j;
....
GetXresBitmap ( (struct Bitmap *) &j);
Technical Details
Message-ID: <74eb6167.0203202347.43214403@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
References: <8il77a.qj.ln@127.0.0.1>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f86c8,8b4d95dcaac031e0
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-03-20 23:47:55 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: laocanfei@yahoo.com (rmj)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Herencia en C :-)
Date: 20 Mar 2002 23:47:55 -0800
Organization: http://groups.google.com/
Lines: 18
Message-ID: <74eb6167.0203202347.43214403@posting.google.com>
References: <8il77a.qj.ln@127.0.0.1>
NNTP-Posting-Host: 194.224.58.36
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1016696875 24326 127.0.0.1 (21 Mar 2002 07:47:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 21 Mar 2002 07:47:55 GMT