|
From: Ioannis V. <no...@ya...> - 2002-02-18 15:08:26
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Devin Carless
> Sent: Monday, February 18, 2002 4:31 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] 'New Source File' bug
>
>
> > This is broken compiler. Did it happen with MINGW32?
>
> Yes. But then again I've also had the compiler telling me
> there are undefined escape sequences in the middle of
> comments. (That one
> went away after a reboot.)
Never had similar problems. Not even once.
>
> I've gotten the compiler to act in weird ways more than once. If
> others aren't having similar problems, then I suspect my system is
> possessed. (Dev-C++ won't work on my other machine, a Win95
> 486; everything it compiles crashes.)
! Never had any slight problem. It may be a virus.
>
> > I am working using standard containers all the time and never
> > encountered any problem (except that MING doesn't support
> vector::at()
> > ).
>
> For me, every day is a fight against whatever new and
> interesting perversity the language, compiler or IDE will
> throw at me. :) Most of the time it's just my inadequate
> command of the language; I'm learning C++
> using a technique known colloquially as 'the Hard Way.'
Either you do programming mistakes, either you have hardware or virus
problem.
Doesn't the following code execute properly at your system?
#include <iostream>
#include <vector>
int main()
{
using namespace std;
vector<int>v(5000);
for(vector<int>::size_type i=0; i<v.size(); i++)
v[i]=i;
for(vector<int>::size_type i=0; i<v.size(); i++)
v[i]=i*2+i;
vector<int>::const_iterator p=v.begin();
while(p!=v.end())
cout<<*p++<<"\n";
}
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
|