From 5897075566369134118
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,de99e5c46dfe5a28
X-Google-Attributes: gidf78e5,public
From: Cristian Georgescu <cgeorges@lehman.com>
Subject: Re: Multiple declarations in for loop?
Date: 1998/05/19
Message-ID: <356196A0.4214@lehman.com>#1/1
X-Deja-AN: 354695865
Content-Transfer-Encoding: 7bit
Approved: stephen.clamage@sun.com (comp.std.c++)
References: <35608CBB.2571@lehman.com> <6jroqf$kgh$1@news.indigo.ie>
Mime-Version: 1.0
Reply-To: cgeorges@lehman.com
Originator: clamage@taumet
X-NNTP-Posting-Host: 146.127.203.15
X-UID: 0000000001
X-Status: $$$T
Content-Type: text/plain; charset=us-ascii
Organization: Lehman Brothers
Newsgroups: comp.std.c++


> Only one simple-declaration is allowed. The following declares i and j as
> you wish
> for (int i=0, j=0; i<10,j<10; i++, j++)
> {
>  //...
> }

Is there a reason for this limitation (only one simple declaration);
why not:

 for (int i=0, unsigned int j=0; i<10,j<10; i++, j++)
 {
  //...
 }

-- 
                      Cristian Georgescu
_________________________________________________
                      email: CGeorges@lehman.com
                      tel:   (212) 526-3502

    _/      _/_/_/_/  Lehman Brothers
   _/      _/    _/   Equity Finance Systems
  _/      _/_/_/_/    World Financial Center
 _/      _/    _/     200 Vesey Street
_/_/_/  _/_/_/_/      New York, NY 10285.
_________________________________________________



[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




