On May 8, 4:12=A0pm, Ian Collins <ian-n...@[EMAIL PROTECTED]
> wrote:
> Travis wrote:
> > I'm curious, if you have an enum say...
>
> > enum Days { Mon, Tue, Wed, Thu, Fri, Sat, Sun };
>
> > I understand the default will be Mon=3D0, Tue=3D1, Wed=3D2, etc.
>
> > What I'm curious about is if there is a Days attribute in a class,
> > what is the default assuming I don't do anything with it?
>
> > For example
>
> > class Foo
> > {
> > public:
> > Days week;
> > };
>
> > If I instantiate a Foo object, what is the default of week?
>
> Unless you initialise it, the value is undefined.
>
> --
> Ian Collins.
Ah ha! That's what I was suspecting. Could you point me to any
do***entation on that fact? I'm trying to find stuff and not having
much luck.


|