Mark Allen Weiss

Hi, I did not write this code. I got it from the author website but their seems to be a lot of errors that I have no idea how to fix. Can someone help please.

I am unable to unload the code here since its too long the author site is
http://users.cis.fiu.edu/~weiss/dsaa_c++3/code/

The code which I need help understanding why it wont run is
BinomialQueue.h: Binomial queue
TestBinomialQueue.cpp: Test program for binomial queues
dsexceptions.h: Simple exception classes
These are all on the website. I know its a lot to ask but any help would be great.
Change BinomialQueue::insert() to
1
2
3
4
5
//BinomialQueue.h line 64
void insert( const Comparable & x ) { 
	BinomialQueue temp(x);
	merge(temp); 
}
It was trying to pass a non-const reference to a temporary. That'll make it build

I wonder why the author does using namespace std; in a header, and why does include iostream for.
Topic archived. No new replies allowed.