I have a feeling I'm doing this whole dynamic array thing wrong, or Im misunderstandin g it.
These are just some snipits of code. When coef creates a new double, all I get is a one element array. No matter what is put in. I have a feeling I'm very confused, helps very appreciated.
Thanks
Code:
private:
int degree;
int numCoef;
double *coef;
Polynomial::Polynomial( int hdegree)
{
degree = hdegree;
numCoef = degree + 1;
coef = new double [numCoef];
FillCoef();
}
Thanks
Comment