Soluzione dell'HomeWork5 (torri di Hanoi - ricorsione)

Vedi anche: HomeWork5, DomandeHomework5, RisultatiHomework5.

Ecco la mia soluzione.

  • ho usato 3 liste per rappresentare i pioli
  • la stampa č ricorsiva e stampa i valori a rovescio
  • basta sostituire alle 'printf' del programma di esempio le mosse e la stampa della situazione

NOTA: come al solito nel testo qua sotto i file .h inclusi non appaiono, ma nel codice allegato sono presenti.


    Warning: Can't find topic Programmazione1/AA0506/PZ/SoluzioneHomework5/hanoi.c 

-- AndreaSterbini - 14 Dec 2003

Topic attachments
I Attachment History Action SizeSorted ascending Date Who Comment
C source code filec hanoi.c r1 manage 3.6 K 2003-12-14 - 09:50 AndreaSterbini  
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-11-04 - AndreaSterbini






 
Questo sito usa cookies, usandolo ne accettate la presenza. (CookiePolicy)
Torna al Dipartimento di Informatica
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback