Hi,
I tried to use wait() function to sleep for a moment but it didn't work as I 
expected.

I wrote a hanoi program, ( a recursive function) to see the movement of the 
disk from tower to another one, I need to stop a while before the next step. 
add_timeout is not appropriate ( I think ), since I am in a reccursive 
function. I just need the equivalent C function  sleep.

here is the example for the procedure

void hanoi(string A, string B, string I, int n){
  //move n disks from A to B
  // use I as intermediate store
  if(n<1) return; // noting to move

  hanoi(A,I,B,n-1);
  cout <<"\n move "<<n<< " from "<< A <<" to  "<< B;
...................................
----------------------------------

I want to draw here the box, but after a while

----------------------
  hanoi(I,B,A,n-1);
}

If somebody has written the procedure or any idea.
Thank you for help

best regards
bela


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to