Re: [Dev-C++] Const member in a Struct
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2007-07-26 08:25:47
|
Initialize with a constructor:
struct check {
const int variable;
check() variable(2) {}
};
/pwm
On Thu, 26 Jul 2007, Muhammad Ammar wrote:
> Hope everyone is in good health.
>
> if have a structure like the following
>
> struct check
> {
> const int variable;
> };
>
> than, how to initialize the data member "variable".
>
>
> Best Regards
>
> Muhammad Ammar
>
> _________________________________________________________________
> http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|