Search:

Type: Posts; User: Z-Ender

Search: Search took 0.00 seconds.

  1. Replies
    21
    Views
    1,950

    Actually I've been told that none of the...

    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.
  2. Replies
    21
    Views
    1,950

    The Answer

    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...
  3. Replies
    21
    Views
    1,950

    I went with the "I'm puzzeled as to why what you...

    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...
  4. Replies
    21
    Views
    1,950

    That might just ........ her off and cause her to...

    That might just ........ her off and cause her to grade me harder. Oh well I guess.
  5. Replies
    21
    Views
    1,950

    Well you're all right of course. I just tested it...

    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...
  6. Replies
    21
    Views
    1,950

    Well damn. I don't understand how my computer...

    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.
  7. Replies
    21
    Views
    1,950

    I'm not sure what she means but she may mean...

    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 */...
  8. Replies
    21
    Views
    1,950

    Copy Constructor Question

    heap::heap(const heap &aHeap)
    {
    delete [] heapArr;
    heapArr =NULL;
    cout << heapArr <<endl;
    heapArr = new HeapNode[aHeap.maxSize];
    if (heapArr != NULL)
    {
    maxSize =...
  9. Replies
    4
    Views
    1,151

    that what i thought about the constructor. I...

    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...
  10. Replies
    4
    Views
    1,151

    Segmenation Faults when using new and delete

    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; ...
Results 1 to 10 of 10