C++ newfaf here. The output from line 70 should be 2x^3, but it's outputting 2686708x^3. When term is constructed, *coeff is printed as 2, but when getWritten() is called, *coeff is printed as 2686708. What's going on?
#include <iostream>
#include <sstream>
using namespace std;
string parseInt(int toParse);
class Term
{
public:
Term(int c, int e);
~Term();
string getWritten();
int *coeff, *exp;
};