Core Dumped While Multiplying Iteratively
<p>I am trying to do something very simple. I have a class for functions, and a class for polynomials derived from the function class.  In the polynomial, I am overloading the *= operator.  But, when I invoke this operator, the program dumps the core and crashes.</p>

<pre><code>Polynomial&amp; Polynomial::operator*= (double c)
{
    for(int i = 0; i &lt;= degree; i++)
        a[i] = a[i] * c;
return *this;
}
</code></pre>

<p>The polynomial class holds the coefficients in array a. The index of a directly relates to the power of x for that particular coefficient.  Function main hands us the constant c, which we then multiply each coefficient by.  </p>

<p>The prototype for the function is part of an assignment, or I would change it.  I'm assuming there's something I'm doing wrong with respect to the return type.  Any help is appreciated. </p>

<p>I am willing to provide more code if requested. </p>
