예제 #1
0
파일: hanoi.cpp 프로젝트: in3xes/dstructure
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);
	}
}