Actually I've been told that none of the professors like the optimization of the complier and are trying to figure out why it is set that way.
Type: Posts; User: Z-Ender
Actually I've been told that none of the professors like the optimization of the complier and are trying to figure out why it is set that way.
Okay so today in class she takes about 30mins or more to explain what she really meant and when it occurs.
object foo(object arg); // returns a type of object.
int main()
{
object...
I went with the "I'm puzzeled as to why what you said should happen isn't happening" approach. It didn't work. I told her about my could, she didn't ask to see it and after I said I used a heap she...
That might just ........ her off and cause her to grade me harder. Oh well I guess.
Well you're all right of course. I just tested it and used cout statements to tell me if the copy constructor was called. It wasn't and now i have to convince a computer science professor that she...
Well damn. I don't understand how my computer science professor could be so wrong. I'll have to ask her to go more in detail of what she means.
I'm not sure what she means but she may mean return by reference.
I don't know but it may be more like this:
heap foo;
bool success=false;
/* Does something that gives foo some values */...
heap::heap(const heap &aHeap)
{
delete [] heapArr;
heapArr =NULL;
cout << heapArr <<endl;
heapArr = new HeapNode[aHeap.maxSize];
if (heapArr != NULL)
{
maxSize =...
that what i thought about the constructor. I was using my professors code for a queue and she had it there( I think it caused a fault when i ran it). I sent her an email asking if I really need it...
Ok the red lines cause faults when they are not commented out.
Can anybody fix this?
//copy constructor
heap::heap(const heap &aHeap)
{
delete [] heapArr; ...