#include <iostream>
#include "Term.h"
using namespace std;
class Polynominal
{
public:
Polynominal();
~Polynominal();
void AddTerms(istream& in);
void Output(ostream& out) const;
void PolyAdd(Polynominal & r);
void Polymultip(Polynominal & m);
private:
Term * theList;
friend ostream & operator << (ostream &,const Polynominal &);
friend istream & operator >>(istream& ,Polynominal &);
friend Polynominal & operator + (Polynominal &,Polynominal &);
friend Polynominal & operator * (Polynominal&,Polynominal &);
};