5752104 [rkeene@sledge /home/rkeene/personal/school/comp-sci-ii/lab5]$ cat -n poly.h
 1 /* Roy Keene
 2    CS 2314
 3    Section 04
 4    Lab 05
 5    08 Oct 02
 6    poly.h
 7 */
 8 #ifndef _CS2314_POLY_H
 9 #define _CS2314_POLY_H
10 #include <list>
11 #include <string>
12 using namespace std;
13 
14 struct PolyTerm {
15     int coeff;
16     int exp;
17 };
18 class Poly {
19     public:
20         Poly(void);
21         ~Poly(void);
22         void insert_term(int coeff, int exp);
23         list<struct PolyTerm *> get_term(void);
24         Poly *Add(Poly b);
25         Poly *Sub(Poly b);
26         Poly *Mul(Poly b);
27         double Evaluate(double x);
28         int Evaluate(int x);
29         string equ(void);
30     private:
31         list<struct PolyTerm *> polyterms;
32 };
33 #endif
5752105 [rkeene@sledge /home/rkeene/personal/school/comp-sci-ii/lab5]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2002-10-02 20:58:49