|
From: Ioannis V. <no...@ho...> - 2003-02-27 15:09:31
|
It is a system extension (variable sized arrays). =0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D =0D -------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:01:= 10 =EC=EC=0D To: dev...@li...=0D Subject: [Dev-C++] Mistake ?=0D =0D Hi all.=0D =0D One day i made a little mistake. Instead of "char* Name =3D new char[FilenameLength];"=0D i wrote " char Name[FilenameLength];", where FilenameLength is evaluated= by runing=0D program. I didn't notice that and everythig worked properly. Yesterday i compiled the project=0D under VisualC++ 6.0 and ofcourse compiler said it is an error. Ofcourse i= t is error because=0D compiler needs constant value for table size. Can someone tell me why min= gw didn't report=0D any error and what is more interesting: why my program worked properly?=0D =0D regards.=0D Adam.=0D =20 |