[CODE]while( one < SIZE && two < SIZE )
a = heap1.returnvalue(one);
b = heap2.returnvalue(two);
if( a <= b)
cout<< b << endl;
This looks as though it is going to be an infinite loop consider the size of SIZE and how both one and two are going ever going to be either > or equal to SIZE.