Re: Adding the ability to add functions into structures?
- From: Clark S. Cox III <clarkcox3@xxxxxxxxx>
- Date: Sat, 31 Dec 2005 10:54:59 -0500
On 2005-12-31 09:50:09 -0500, jacob navia <jacob@xxxxxxxxxxxxxxxx> said:
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.
Why do you keep posting code that, while almost C, will only work on a single compiler, on a single platform?
-- Clark S. Cox, III clarkcox3@xxxxxxxxx
.
- Follow-Ups:
- Re: Adding the ability to add functions into structures?
- From: jacob navia
- 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
- Re: Adding the ability to add functions into structures?
- From: jacob navia
- Adding the ability to add functions into structures?
- Prev by Date: Re: Passing String to Function
- Next by Date: How to recognize the Function keys in C
- 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
|