Welcome! Log In Create A New Profile


Including Files in Dev C++

Posted by ClaudiaB 
Announcements Last Post
Announcement : Programming Students at UNISA School of Computing 06/19/2019 02:01PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Including Files in Dev C++
July 18, 2006 09:39PM

I'm having trouble with including some of my files in Dev C++ from Bloodshed. For instance, if I take the downloaded files from Malik for binary Tree.h and binarySearchTree.h as an example. I add them to my project and then:
- if I include binaryTree to my main.cpp and run the program = no problem
- if I include instead binarySearchTree.h (which does include binaryTree.h in its own code) = problem.
Here is the error:
In file included from main.cpp binarySearchTree.h - In member function bool bSearchTreeType<elemType>::search(const elemType& ) root undeclared (first use this function).

Essentially it doesn't see the variable root, because this is only declared in binaryTree, and for whichever reason binarySearchTree dpes not reference back to binaryTree correctly. Can anyone help?
Sorry, only registered users may post in this forum.

Click here to login