Re: how?

"james19748" <[email protected]> Fri, 08 Oct 2004 18:52:56 -0000
Newsgroups gmane.comp.programming.cppug
Message-ID <[email protected]>


--- In [email protected], ravi kumar <ravivjreddy@y...> wrote:
> hai,
>  i am a newbie ,
>  can any one of you tell me how to initialize
>  const variables in a class declared under public/private section..
>   
> 
> 		
> ---------------------------------
>  ALL-NEW Yahoo! Messenger - all new features - even more fun!

It looks like this:

#include <stdio.h>

class someClass {

 public:
 
 someClass() : i(100) {}  
 
 const int i;
 

};


int main() {}



James E. Smith 
CSC








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cppug/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/