void moveTopTo(Tower& t){
		int top = disks.top();
		disks.pop();
		t.add(top);
		cout<<"Move disk "<<top<<" from  "<<Index()<<" to "<<t.Index()<<endl;
	}
 int MoveTopTo(Tower t)
 {
     int disk = stack.pop();
     t.add(disk);
 }
Exemple #3
0
	void moveTopTo(Tower t) {
		int top = disks.pop();
		t.add(top);
	}