hello,
I have to implement this function: void addTerm(double coeff, unsigned exponent);
and it has to:
// add term (coeff^exponent) to the polynomial;
// might just change coefficient of existing term,
// or might insert new term; maintains terms
// in order from greatest to least exponent
I really have no idea where to start. I just want some tips or any help at all to start.
you should use code-tags to make it easier to read
ok - I see you have chosen to use a linked list to maintain your terms
1. for debugging purposes, I recommend you start by writing a method which will print out all your terms
2. try to implement your first requirement: // add term (coeff^exponent) to the polynomial;
repost your new code in code-tags, indented cleanly, and we'll go from there