-------Original Message-------=0D
=0D
From: Adam Malinowski=0D
Date: =D0=DD=EC=F0=F4=E7, 27 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2003 5:48:=
18 =EC=EC=0D
To: Ioannis Vranos; dev...@li...=0D
Subject: Re: [Dev-C++] Mistake ?=0D
=0D
>>It is a system extension (variable sized arrays).=0D
=0D
So whay does VC++ not compile it? Is it too old?=0D
=0D
=0D
=0D
=3D=3D> It is a system extension of GCC. As with all system extensions th=
ey are
not guaranteed to compile to other systems or even different versions of =
the
same compiler. If you use C++, use vector instead. =0D
=0D
=3D=3D> If you use C, C99 provides the notion of variable length arrays (=
VLAs)
so you can use that (but if i recall correctly VLAs are limited to the
automatic storage/stack, that is they do not use the free store).=0D
=0D
=3D=3D> In C++ use the standard library containers instead of allocating =
and
deallocating memory manually.=0D
=0D
=0D
Ioannis Vranos=0D
=0D
* Programming pages: http://www.noicys.freeurl.com=0D
* Alternative URL: http://run.to/noicys=20
|