Re: [Dev-C++] Newbie problem including files correctly
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <de...@ci...> - 2004-05-25 16:45:57
|
Surely you shouldn't mix iostream and iostream.h like that? In article <000e01c441d0$40f9eb20$6401a8c0@Ewald>, in...@ho... (Ewald Horn) wrote: > Hi Dane, > > yup, it's pretty confusing in the beginning, I know! But don't worry, > you > will soon get the hang of include files. > > Try the following setup and see if it solves your problem: > > Employee.h file > #include <iostream.h> > Employee.cpp file > #include "Employee.h" > Main.cpp file > #include <iostream> > #include <stdlib.h> > #include "Employee.h" > > You see, by including the *.h file in the main cpp file, you > automatically > include the *.cpp file as it contains the actual code and not just the > definitions, classes and prototypes. > > Good luck! > Ewald Horn > Proprietor/Eienaar : Horn Labs > Cell/Sel : 083 519 1615 > Website : http://www.hornlabs.co.za > Email/E-pos : in...@ho... > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle > 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |