[Dev-C++] Newbie problem including files correctly
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Dane E. <DE...@pa...> - 2004-05-24 19:35:28
|
Hi, Thank you in advance for any help you can offer. I have three files: 1. Employee.h - Class declarations only 2. Employee.cpp - class functions only , includes constructor. 3. main.cpp - main file. My Employee.h file declares 2 variables that are string types. My Employee.cpp's constructor sets them to A default value. I cant figure out the correct location of the include statements. Their placement looks incorrect to me and after trying many different combinations I still can't fix it. Here is what I have Right now: Employee.h file None. Employee.cpp file #include "Employee.h" #include <iostream> Main.cpp file #include <iostream> #include <stdlib.h> #include "Employee.cpp" Dane Ensign =20 |