RE: [Dev-C++] Re: Conio AND a question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-04-09 20:08:18
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Samuel Keding > Sent: Wednesday, April 09, 2003 7:46 PM > To: dev...@li... > Subject: [Dev-C++] Re: Conio AND a question > > > To the person that was trying to use some borland functions > in the conio.h file. I had the same problem until somebody > told me to #include <conio.c> which worked for me. > > And now my question: > > I have toyed with borland C++ 5.5, the free downloadable > version. It reported a bunch of syntax errors for a source > file that compiled fine under dev C++ using the minGW > compiler. Some of the syntax errors appeared to be centered > on the fact that I had a constructor in a structure. > According to ANSI C++, can a structure have a constructor? > Did they allow structures to have constructor's in older standards? Yes structs can have a constructor (I assume you do not have it in private access, and it is a .cpp file). There are not older standards for C++. The first is the last one, the ANSI/ISO C++ 14882:1998 standard (there is/will be an intermediate revision this year, which is "bug fixes"). Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org |