User Profile
Collapse
-
it compiles but how can i set the whole insert function -
yes, but i need to know what goes in the void insert
void insert (const KEY &key, const VALUE &value)
{
}
any help i will appreciate, thank youLeave a comment:
-
building a heap
...Code:UnderflowException.h #pragma once #include <exception> using namespace std; class UnderflowException: public exception { }; OverflowException.h #pragma once #include <exception> using namespace std; class OverflowException: public exception { }; Node.h -
building a heap
...Code:UnderflowException.h #pragma once #include <exception> using namespace std; class UnderflowException: public exception { }; OverflowException.h #pragma once #include <exception> using namespace std; class OverflowException: public exception { };Leave a comment:
-
...Code://This is the Node.h #pragma once template <typename KEY, typename VALUE> class Node { public: KEY key; VALUE value; Node( ) { } Node(const KEY &key, const VALUE &value): key(key), value(value) { } }; //This is the overFlowException #pragma once #include <exception> usingLeave a comment:
-
building a heap. problems with the void insert function
i need to write the code for the void insert into a heap. I have an error that fail compilation.
here is my code, can someone... help me out please
what should do
void insert (const KEY &key, const VALUE &value)
I wrote something like this:
...Code:void insert (const KEY &key, const VALUE &value) ************************************************************ #pragma
No activity results to display
Show More
Leave a comment: