Squashed bug causing incorrect digits. Now fully working
I totally brainfarted and put this->preDigits.size() in the for loop comparison clause, which gets re-evaluated every loop. So it was leaving digits on the stack that should have been printed, causing errors both immediately and down the line.
This commit is contained in:
parent
aac5409a72
commit
218d5b7da8
5 changed files with 70 additions and 27 deletions
|
@ -11,13 +11,11 @@ public:
|
|||
void pump(void);
|
||||
|
||||
private:
|
||||
int numDigits;
|
||||
std::vector<int> spigotList;
|
||||
int spigotListLength;
|
||||
int carry;
|
||||
std::vector<int> preDigits;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue