Article View: be.comp.programming
Article #13309Re: c++ een stomme taal?
From: Luc Kumps
Date: Fri, 03 Aug 2001 09:49
Date: Fri, 03 Aug 2001 09:49
34 lines
2372 bytes
2372 bytes
"An Ony" <Dontreallyknow@thatthing.com> wrote in message
news:3b6a7113$0$4389$ba620e4c@news.skynet.be...
> void main() {
> for (int i=0; i<2; i++) cout<<"nummer a"<<i;
> for (int i=0; i<2; i++) cout<<"nummer b"<<i;
> for (int i=0; i<2; i++) { cout<<"nummer c"<<i; }
> for (int i=0; i<2; i++) { cout<<"nummer d"<<i; }
> }
>
> Compiling...
> Lesson01b.cpp
> Lesson01b.cpp(159) : error C2374: 'i' : redefinition; multiple
> initialization
> Lesson01b.cpp(158) : see declaration of 'i'
> Lesson01b.cpp(160) : error C2374: 'i' : redefinition; multiple
> initialization
> Lesson01b.cpp(158) : see declaration of 'i'
> Lesson01b.cpp(161) : error C2374: 'i' : redefinition; multiple
> initialization
> Lesson01b.cpp(158) : see declaration of 'i'
> Error executing cl.exe.
>
> Lesson01b.exe - 3 error(s), 0 warning(s)
> ===============================
> ligt dit nu aan Visual C++ (versie 6 dan nog!) of aan C++? in java zou het
> werken
Aan VC++.
Je moet de Microsoft extensies afzetten met /Za
Zie KB artikel Q167748 voor details
Luc
Technical Details
Message-ID:
<wsua7.8349$lB.1697185@afrodite.telenet-ops.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be!not-for-mailReferences:
<3b686d57$0$4386$ba620e4c@news.skynet.be> <Xns90F18AAF1752pastoorwalter@195.130.132.65> <3b6903b7$0$4564$ba620e4c@news.skynet.be> <Xns90F1CEED4C9A8pastoorwalter@195.130.132.65> <3b699cb6.742251030@news.easynet.be> <Xns90F1D5DB05304pastoorwalter@195.130.132.65> <3b6a7113$0$4389$ba620e4c@news.skynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcea4,411bf7b1af76013e X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2001-08-03 02:49:18 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!newsgate.cistron.nl!newsfeeds.belnet.be!news.belnet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be!not-for-mail From: "Luc Kumps" <NOkumpsSPAM@pandora.be> Newsgroups: be.comp.programming References: <3b686d57$0$4386$ba620e4c@news.skynet.be> <Xns90F18AAF1752pastoorwalter@195.130.132.65> <3b6903b7$0$4564$ba620e4c@news.skynet.be> <Xns90F1CEED4C9A8pastoorwalter@195.130.132.65> <3b699cb6.742251030@news.easynet.be> <Xns90F1D5DB05304pastoorwalter@195.130.132.65> <3b6a7113$0$4389$ba620e4c@news.skynet.be> Subject: Re: c++ een stomme taal? Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <wsua7.8349$lB.1697185@afrodite.telenet-ops.be> Date: Fri, 03 Aug 2001 09:49:16 GMT NNTP-Posting-Host: 213.118.69.209 X-Complaints-To: abuse@pandora.be X-Trace: afrodite.telenet-ops.be 996832156 213.118.69.209 (Fri, 03 Aug 2001 11:49:16 MET DST) NNTP-Posting-Date: Fri, 03 Aug 2001 11:49:16 MET DST Organization: Telenet Internet