How am I pushing my luck? I posted all the code that was needed. I've already had to submit it but can't find the button to mark the thread solved.
If you mean earlier, I'm done trying to be...
Type: Posts; User: javapenguin
How am I pushing my luck? I posted all the code that was needed. I've already had to submit it but can't find the button to mark the thread solved.
If you mean earlier, I'm done trying to be...
Ok, now all the program is written(I mean coded, not correct, or even correctly coded probably for that matter). Now please help me figure out the errors.
DoublyLinkedList.h
#ifndef...
I'm really baffled about this type of message.
Polynomial::Polynomial(float *array, int degree)
{
list = new DoublyLinkedList<Term(float, int)>();
Please help. I've done what you wanted. And this is due soon.
What is wrong with
DoublyLinkedList<Term(float, int)> *list;
?
Anybody there? ~X(~X(~X(:!!:!!:!
I've also get a bunch of errors in Polynomial.cpp
#include <iostream>
#include <cmath>
#include <string>
#include "Polynomial.h"
What's causing all the
Polynomial.cpp:[insert line here]: error: request for member ‘(insert name here)’ in ‘((Polynomial*)this)->Polynomial::list’, which is of non-class type...
I fixed a ton of errors, but am still getting all of these
DoublyLinkedList.h: In instantiation of ‘DoublyLinkedList<Term ()(float, int)>’:
Polynomial.cpp:12: instantiated from here...
#ifndef _TERM_H_
#define _TERM_H_
class Term
{
public:
Term(float coefficient, int power);
Term(const Term& term);
DoublyLinkedList.h is completed! How does it look? Do I need to clear up all the previous pointers in the DoublyLinkedList destructor or is that already taken care of?
#ifndef...
As I'm worried about the stability of my hard drive, I will be posting code here quite frequently:
#ifndef DOUBLY_LINKED_LIST_H
#define DOUBLY_LINKED_LIST_H
template <class T>
class...
Will this code here deal with all of the pointers to previous?
template <class T>
DoublyLinkedList<T>::~DoublyLinkedList()
{
Node *curr, *curr2, *temp, *temp2;
I know for the overloaded + operator, I'm supposed to basically do this:
1.) Compare exponents of the first Term in each of the Polynomial lists. If they are equal, then add and advance both...
It was working on bits and pieces of it and have the code in jumbles. I can fix it but I'm going to just add it as is to make it easier to add.
Polynomial Polynomial::operator + (const...