Creating a project 1. Options, Project Output Directories: Intermediate and Final should be empty 2. File, New, Project - Project Path and Name: c:\temp\add1test.ide - Target type: Application - Platform: Win32 - Target Model: Console - Static - Advanced button: only .cpp (.rc and .def must not be checked) Separate Compilation - creating a new Project of several C++ files 3. Double click on add1test.cpp and type the following code // uses the function add1 // defined in a separate file #include #include "add1.h" int main() { // get the number cout << "Enter a number: "; int n; cin >> n; // find the number plus 1 int newn = add1(n); // print out the number plus 1 cout << newn << endl; } 4. Right click on the target (.exe) node to add a dependent node called add1.cpp #include "add1.h" // adds 1, // returns added value int add1(int n) { return (n + 1); } 5. The .h header file does not have to be listed as a dependent node in the project window (only source files get listed there), but it does have to be in the same directory as the target. // adds one int add1(int); Thanks to Randy Stewart for providing this CSCI101 document.