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;
};
>>3
LISP GC is actually one of the few that is not shit. Unlike the Java GC, LISP uses cons cells and tagged pointers, making GC as simple as mark and sweep.