Mail Archives: djgpp/1998/11/26/16:02:17
Message-Id: | <199811262001.UAA29521@remus.clara.net>
|
From: | "Arthur" <arfa AT clara DOT net>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | RE: (Sniff), help!
|
Date: | Thu, 26 Nov 1998 20:00:13 -0000
|
X-Priority: | 3 (Normal)
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0
|
Importance: | Normal
|
In-Reply-To: | <199811261044.KAA12720@indus.hclt.com>
|
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3
|
Reply-To: | djgpp AT delorie DOT com
|
> > You need to give moo a value, otherwise you're adding something to a
> > ariable which doesn't have a value, and hence you're getting an error
> > becuase you're variable is declared but not defined.
>
> No, moo is very much defined correctly.
> Defenition is NOT deferred until usage of the variable.
No, that is not what he meant - the problem is that you don't know what moo
contains - is is not necessarily set to zero on initialisation, in fact ANSI
specifically says that it cannot be guaranteed.
James Arthur - jaa AT arfa DOT clara DOT net
http://www.arfa.clara.net/james/
ICQ#15054819
> >
> > Jeff Johnson wrote in message
> > <3 DOT 0 DOT 6 DOT 32 DOT 19981124194909 DOT 007a21d0 AT tenforward DOT com>...
> > >(sniff)..i cant stand it!...this is driving me crazy!..
> > >
> > >i made a prog. when i compiled it it said i was "redefining" every
> > >variable whenever i used it, ex:
> > >
> > >#include <iostream.h>
> > >#include <string6.h>
> > >int main()
> > >{
> > >blah blah blah
> > >int moo;
> > >int cow = 6;
> > >moo = (moo + cow) //Redefinition Error Here
> > >}
> > >Now, This isn't the exact program.. the real thing is 700+ lines, so
> > >someone help me out B4 I go crazy, crazy? I was Crazy Once,
> They locked
> > >me in a room with rats, rats? rats drive me crazy, crazy? i was crazy
> > >once, they locked me in a room with rats, rats? rats drive me crazy,
> > >crazy? i was crazy once, they locked me in a room with rats,
> rats? rats
> > >drive me crazy, crazy? i was crazy once...............
> > >
>
>
>
> Sivanand
> (siva AT hclt DOT com)
>
>
- Raw text -