S
some one
I know that C++ lets you overload functions, but how do I overload functions in C?
some one said:I know that C++ lets you overload functions, but how do I overload functions in C?
some said:I know that C++ lets you overload functions, but how do I overload functions in C?
I know that C++ lets you overload functions, but how do I
overload functions in C?
functions in C?some one said:I know that C++ lets you overload functions, but how do I overload
More precisely, you CAN'T.You don't.
#include<complex.h>some said:I know that C++ lets you overload functions, but how do I overload functions in C?
Manually.
> cat complex.c
I know that C++ lets you overload functions, but how do I overload functions in C?
With lcc-win32 you write:
int overloaded fn(struct a*arg);
int overloaded fn(struct b *arg);
and when you pass to fn an "a" it will call the first, and when you
pass it the second it will call the second.
http://www.cs.virginia.edu/~lcc-win32
I know that C++ lets you overload functions, but how do I overload
functions in C?
[stuff that isn't C and isn't topical in comp.lang.c]jacob said:With lcc-win32 you write:
OK OK True, this is an lcc-win32 evil extension...Arthur J. O'Dwyer said:That's very interesting, Jacob, but the OP did ask about
the C language, not about lcc-win32.
Oh, and *please* don't top-post.
-Arthur
jacob navia said:OK OK True, this is an lcc-win32 evil extension...
If this question arises it is because people need that isn't it?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.