Re: Adding the ability to add functions into structures?
- From: jacob navia <jacob@xxxxxxxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 15:50:09 +0100
Eric Sosman a écrit :
jacob navia wrote:
[...] 2) I define the interface functions: typedef struct { // Returns the number of elements stored int (*GetCount)(ArrayList &AL);
Whatever this language is, I doubt it's topical on comp.lang.c.
Yes, replace the "&" by "*". lcc-win32 supports "&" as in C++, but it can be replaced by "*". References are just pointers that can never be NULL. A pointer will do too. .
- Follow-Ups:
- Re: Adding the ability to add functions into structures?
- From: Clark S . Cox III
- Re: Adding the ability to add functions into structures?
- References:
- Adding the ability to add functions into structures?
- From: Albert
- Re: Adding the ability to add functions into structures?
- From: jacob navia
- Re: Adding the ability to add functions into structures?
- From: Eric Sosman
- Adding the ability to add functions into structures?
- Prev by Date: Re: Adding the ability to add functions into structures?
- Next by Date: Re: Adding the ability to add functions into structures?
- Previous by thread: Re: Adding the ability to add functions into structures?
- Next by thread: Re: Adding the ability to add functions into structures?
- Index(es):
Relevant Pages
|