I'm working (well have been for the past few weeks) on a polynomial class to do different things between two polynomials: multiply, divide, get remainder, subtract, add. The coefficients are stored in a pointer to an array listed under private and the degree (also the amount of slots in the array) is stored as private as well. During definition of many functions, a lot of instances of the class are created/destroyed/modified via dynamic allocation etc. I've come up with a solution for the required program, but when I compile it, the program crashes half of the time, and works the other half of the time. Does this mean I have an error within the program, or could there be an error in the compiling process? Just curious..Thanks for any insight.
(by the way, compiler is Code::Blocks 8.02 and OS is windows 7...let me know if there's anything else you need)