Soluzione dell'Homework 3 (Mastermind)

Vedi anche: HomeWork3, DomandeHomework3, RisultatiHomework3.

Ecco la versione che ho scritto io:

  • ho semplificato la funzione di confronto in modo che confronti due numeri interi (di 5 cifre)
  • essa torna un numero intero le cui decine sono gli strike e le unitā i ball
  • ho memorizzato in due array di 20 elementi (il numero massimo di tentativi)
    • il tentativo
    • la risposta

NOTA: coma al solito la riga #include appare vuota perchč viene interpretata come tag html dal browser. Nel codice č corretta.


    Warning: Can't find topic Programmazione1/AA0506/PZ/SoluzioneHomework3/indovina.c 

-- AndreaSterbini - 19 Nov 2003

Topic attachments
I Attachment HistorySorted descending Action Size Date Who Comment
C source code filec indovina.c r1 manage 1.8 K 2003-11-26 - 23:33 AndreaSterbini indovina il codice
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 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