20 lines
417 B
C
20 lines
417 B
C
|
//Derek McQuay 647465151 CS 235 Fall 2012 midterm 1
|
||
|
#ifndef __NODE_H__
|
||
|
#define __NODE_H__
|
||
|
|
||
|
#include <iostream>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
class node {
|
||
|
public:
|
||
|
node(const int, const int, const char, node*);
|
||
|
node(const int, const char, node*);
|
||
|
int exponent;
|
||
|
int coefficient;
|
||
|
char variable;
|
||
|
node* next;
|
||
|
friend ostream & operator<<(ostream & os, node n);
|
||
|
};
|
||
|
#endif
|