Skip to content

Commit

Permalink
fixed output bug
Browse files Browse the repository at this point in the history
the class needs to be passed to its respective
header and implementation file
  • Loading branch information
Redent0r committed Oct 12, 2017
1 parent 5150229 commit 408a04b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hanoi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Hanoi

int main()
{
const unsigned int DISKS = 3;
const unsigned int DISKS = 11;
Hanoi hanoi(DISKS);
hanoi.play();
}
Expand Down Expand Up @@ -140,7 +140,7 @@ void Hanoi::printStacks()
s0.pop();
}
else
std::cout << std::setfill(' ') << std::setw(disksWidth);
std::cout << std::setfill(' ') << std::setw(disksWidth + 4) << ' ';

if(((s1Size - i) >= 0) && !s1.empty())
{
Expand All @@ -149,7 +149,7 @@ void Hanoi::printStacks()
s1.pop();
}
else
std::cout << std::setfill(' ') << std::setw(disksWidth);
std::cout << std::setfill(' ') << std::setw(disksWidth + 4) << ' ';

if(((s2Size - i) >= 0) && !s2.empty())
{
Expand Down

0 comments on commit 408a04b

Please sign in to comment.