void hanoi::shift(stack *A, stack *B) { int tmp = 0; if(A->return_top_value() == -1) { shift(B,A); } else { tmp = A->return_top(); A->pop(); B->push(tmp); } }