Re: [Dev-C++] Newbie problem including files correctly
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ewald H. <in...@ho...> - 2004-05-24 20:40:31
|
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... |