|
From: Ioannis V. <no...@ho...> - 2002-04-27 04:46:19
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Ioannis Vranos > Sent: Thursday, April 25, 2002 5:32 PM > To: Dev-C++ > Subject: RE: [Dev-C++] templates > > > > -----Original Message----- > > From: Wal...@va... [mailto:Wal...@va...] > > Sent: Thursday, April 25, 2002 2:53 PM > > To: no...@ho... > > Subject: RE: [Dev-C++] templates > > > > > > > > queueElement is defined in the header file which is included > > in the .cpp > > file. My code compiles with Borland but not Dev-C++ > > If you compile with Borland using the AT switch, i am sure it will not > compile either: > > E.g. bcc32 -AT temp.cpp > bcc32 -A temp.cpp > > -AT forces ANSI compatibility. -A > > > > > > #include <iostream.h> > > #include <stdlib.h> > > > > #ifndef QUEUE > > #define QUEUE > > > > const int MAX=401; > > int i; > > template <class queueElement> > > > This is not definition of queueElement. > > > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys |