Search:
Type: Posts; User: weaverx9x9
Search:
Search took 0.04 seconds.
-
November 11th, 2010, 03:02 PM
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...
-
November 8th, 2010, 11:22 PM
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)...
-
November 8th, 2010, 07:52 PM
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...
-
November 8th, 2010, 11:27 AM
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...
-
November 8th, 2010, 08:37 AM
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...
-
November 8th, 2010, 08:05 AM
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()...
-
November 8th, 2010, 08:02 AM
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...
-
November 8th, 2010, 07:08 AM
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...
-
November 7th, 2010, 06:00 PM
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.
-
November 7th, 2010, 05:36 PM
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...
-
November 7th, 2010, 05:29 PM
Yeah your're right let me try that. I did mean n, not i.
-
November 7th, 2010, 04:41 PM
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...
-
November 7th, 2010, 04:09 PM
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...
|
Click Here to Expand Forum to Full Width
|