Re: [Dev-C++] Re: Conio AND a question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-04-09 16:53:11
|
A struct and a class is just about the same. The main difference is that a struct has default public access, while a class requires you to write protected: or public: if you want to access the contents. /Per W On Wed, 9 Apr 2003, Samuel Keding wrote: > 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? > > > ____________________________________________________________ > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |