So I've been putting together my Expression manipulator. I get everything working. Combining like terms works. Division works. Numbers automatically combine. I have a reasonably good idea on where memory is managed, and I'm fairly trusting that its being deleted and new'ed with care.
And then I write my 'combine_like_factors' part, for when you have two factors with the same base, and different (or similar) exponents. My trust in my memory management has gone out the window. I try to print out a string, but I'm getting the linux enviroment variables instead...
I've re-created the same function 4 times, but each time the same thing happens, and it unwinds somewhere down the road. I think my factors are becoming detached (they're in pointer form)... And it could be code that I wrote a while ago and trusted to work, except that trust is all well and good until you actually run the code...
Just ranting. Any of you ever encountered a similar situation?