Re: [Dev-C++] Question about function parameters
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-02-24 09:10:34
|
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
>
|