Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: weaverx9x9

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    Well, I fixed the addition part, and then added the multiplication. However, once I implemented the multiplication operator overload I started getting the same error. I have been getting two memory...
  2. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    That's a good idea on the constructor with the char* n parameter. The grow() function is basically creating a dynamically allocated array that is 5 slots (indices not sure about the term here)...
  3. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    I got it working! Haven't added all the operator overloads yet. It would seem that the problem was in the operator+ function. Still not sure what i did wrong exactly. I know though that I was...
  4. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    I haven't overloaded the += operator. And I have even been able to get it to add two numbers. The problem is when the array reaches the upper bound and I call the Grow() function to increase the...
  5. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    I have a driver program, and I can successfully use the assignment operator. It is at the addition that I run into problems. But after putting several cout statements in my program I have traced...
  6. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    Sorry about the formatting on that code block, I am not very experienced with that. Obviously the overload is not the :operator= overload. I feel pretty certain the problem is in the Grow()...
  7. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    Yeah that's true D_Drmmr.

    I changed the overload of the assignment operator to reflect what Paul McKenzie suggested. I am still getting the same error though. I am going to stop by one of my...
  8. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    I have actually considered that. I wasn't sure which would be more work though, writting the vector and string classes or just using the libraries permitted. Next semester I'm taking data...
  9. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    Actually c++ is his main course. I took him for intro to c++ and am currently taking oop with him. He has a Ph.d in something I'm guessing computer science.
  10. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    Thanks Paul, actually most of that code block came from an example program from my proffessor. I will take a look at it again and see if I can find something. I had to take a break starting to see...
  11. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    Yeah your're right let me try that. I did mean n, not i.
  12. Replies
    27
    Views
    3,266

    Re: new [] / delete [] errors, going crazy!

    It's an assignment. They don't want you using things that might make your life too easy. I still can't use the string class much less vectors. I have tried putting the [] in there and it doesn't...
  13. Replies
    27
    Views
    3,266

    new [] / delete [] errors, going crazy!

    I am writing a program that allows for the creation of a theoretically infinitely large integer. I have created the class MyInt and implemented the storage using DMA.
    I have attached the .cpp...
Results 1 to 13 of 13


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center