home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dmc.com!munroe
- From: munroe@dmc.com (Dick Munroe)
- Newsgroups: comp.lang.c++,gnu.g++
- Subject: Re: Variable Declarations
- Message-ID: <1992Sep10.083502.4515@dmc.com>
- Date: 10 Sep 92 08:35:02 EDT
- References: <u895217.716089910@bruny>
- Organization: Doyle, Munroe Consultants, Inc., Hudson, MA
- Lines: 20
-
- In article <u895217.716089910@bruny>, u895217@bruny.cc.utas.edu.au (Scott Marshall) writes:
- > Hi.
- > I need a little advice on using C++. When given the following code, would
- > the variable being declared (and initialised) be re-initialised on every
- > iteration?
- >
- > String s = buf;
-
- It will be reinitialized with each iteration of the loop. This statement is
- equivalent to (begging the issues of constructors):
-
- String s ;
- s = buf ;
- --
- Dick Munroe Internet: munroe@dmc.com
- Doyle Munroe Consultants, Inc. UUCP: ...uunet!thehulk!munroe
- 267 Cox St. Office: (508) 568-1618
- Hudson, Ma. FAX: (508) 562-1133
-
- GET CONNECTED!!! Send mail to info@dmc.com to find out about DMConnection.
-