home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!pipex!warwick!bham!pickerig
- From: pickerig@eee.bham.ac.uk (Mr. G. Pickering)
- Subject: Bad 'for' statement?
- Summary: for statement fails under AT&T C++
- Sender: usenet@rs6000.bham.ac.uk (USENET News Service)
- Message-ID: <1992Nov12.160420.18097@rs6000.bham.ac.uk>
- Date: Thu, 12 Nov 1992 16:04:20 GMT
- Organization: The University of Birmingham, England
- X-Newsreader: TIN [version 1.1 PL6]
- Keywords: AT&T for
- Lines: 23
-
- Hi,
-
- Could you tell me if this is really a syntax error as AT&T 2.1 reports?
-
- for(int i=0, int j=10; i<10; i++, j++)
- {
- // do something
- }
-
- Thanks,
-
- Guy
-
- --
- +--------------------------------+-----------------------------------------+
- | Guy Pickering | School of Electronic & Electrical Eng, |
- | E-MAIL: G.PICKERING@uk.ac.bham | University of Birmingham, |
- | Tel: (021) 414 4340 | Edgbaston, Birmingham. B15 2TT. |
- +--------------------------------+-----------------------------------------+
- | "I have ten pairs of trainers...One for each day of the week" - Sam Fox |
- +--------------------------------+-----------------------------------------+
-
-
-