Re: [Dev-C++] Question about function parameters
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Daniel G. <sp...@ho...> - 2003-02-24 09:35:58
|
Thanks Per!
>From: Per Westermark <pw...@ia...>
>To: Daniel Glenfield <sp...@ho...>
>CC: dev...@li...
>Subject: Re: [Dev-C++] Question about function parameters
>Date: Mon, 24 Feb 2003 10:08:45 +0100 (CET)
>
>Commenting away unused parameters, is just a way of informing the compiler
>that you don't want any warnings about unused parameters.
>
>Some parameter types might be specific enough that you may always
>guess what they mean (such as a single HWND parameter), but say that
>the function takes four int as parameters. How would you then quess
>the meaning of (int,int,int,int)?.'
>
>In the end, you don't need them, but they might be seen as good
>craftmanship.
>
>/Per W
>
>On Mon, 24 Feb 2003, Daniel Glenfield wrote:
>
> >
> >
> > int MyFunction(int /* MyInt */, HWND /* Hwnd */ )
> > {
> > //... some code
> > }
> >
> > what is the significance of /* MyInt */ etc. ? Is it something to do
>with
> > default values?
> >
> >
> >
> > _________________________________________________________________
> > Chat online in real time with MSN Messenger http://messenger.msn.co.uk
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
|