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 Size Date Who Comment
C source code filec hanoi.c r1 manage 3.6 K 2003-12-14 - 09:50 AndreaSterbini  

This topic: Programmazione1/AA0506/PZ > SoluzioneHomework5
Topic revision: r2 - 2004-11-04 - AndreaSterbini
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback