So I've been trying to fix this program for the past month. Its a semester long program project. The basic requirements of this link list is that it must accept a polynomial from the user and be able to add, subtract, and multiply it with a second polynomial also taken from the user. I have the program down to one problem on bloodshed but its not making any sense to me as to what it wants me to do.
link list header file
#indef LINKLIST_H
#define LINKLIST_H
#include <iostream>
using namespace std;
cout << "Enter the highest degree of your polynomial: ";
cin >> numdeg;
degree= new int [numdeg];
Polynomial coefficients[numdeg];
for(int i = 0; i <= numdeg; i++){
cout << "Enter each coefficient individually, starting with the one with the highest degree(press enter after each)";
cin >> s;
First of all, when you paste code, please use the code tags. They show up in the Format box as "<>". They make it much easier to read your code.
I have the program down to one problem on bloodshed but its not making any sense to me as to what it wants me to do.
Second, what is the problem you are having? Nobody has time to look through hundreds of lines of code to find random problems. Give us a hint as to what the problem is. Your description request doesn't give us much to go on.
In polynomial.h you have a #endif followed by a '}' The #endif is for the header guard , so I don't know what the '}' is for.
The definitions of the Polynomial constructor, and the functions Insert, Extract, etc. appear to be in the polynomial.h file after the #endif statement. If they are in the .h file they should be (1) before the #endif statement and (2) inline functions. If more than 1 .cpp file includes the definitions of the functions and they are not inline, you will get a multiply defined function. You might want to consider writing a polynomial.cpp file for these function definitions.