Hello everybody,
I have some files both .cpp and .h that are coded in C++ by someone else before(only 5 files that creates a Binary Search Tree). I would like to use it in my project.
First of all, I have copied the files that I need to the same directory of my .cpp file that contains the main method. Then, I have added the files using, Add> Add Existing Item from Visual Studio 2003.NET. Then, click build and compile, compiler did not give any error or warnings and compiled successfully. Nevertheless, when I want to create an object from a class from my main method compiler does not see any classes.
I have spent my day on this but couldn't go one step further, any help would be appriciated.
If you want I can send the project file who wants to help, it is so small, and I only need why it does not see the classes.
Code:// ******************************************************** // Header file TreeException.h for the ADT binary tree. // ******************************************************** #include <stdexcept> #include <string> using namespace std; class TreeException: public logic_error { public: TreeException(const string & message = "") : logic_error(message.c_str()) { } }; // end TreeException
Kind Regards,



LinkBack URL
About LinkBacks


