home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c++:13516 gnu.g++.help:1216
- Path: sparky!uunet!spool.mu.edu!snorkelwacker.mit.edu!ai-lab!prep.ai.mit.edu!gnulists
- From: munroe@dmc.com (Dick Munroe)
- Newsgroups: comp.lang.c++,gnu.g++.help
- Subject: Re: Variable Declarations
- Message-ID: <gnusenet1992Sep10.083502.4515@dmc.com>
- Date: 10 Sep 92 12:35:02 GMT
- References: <u895217.716089910@bruny>
- Followup-To: comp.lang.c++,gnu.g++.help
- Organization: Doyle, Munroe Consultants, Inc., Hudson, MA
- Lines: 20
- Approved: info-gnu@prep.ai.mit.edu
- To: gnu-g++-announce@uunet.uu.net
-
- 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.
-