Git Product home page Git Product logo

Comments (29)

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

qui dobbiamo capire di cosa è responsabile il modulo "cai".

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Cai calcola la moltiplicazione da chiedere

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

quasi

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Moltiplica 2 numeri ahah

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

tirendi conto da solo che la moltiplicazione si fa con un *

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

E poi controlla se il risulato è uguale al numero che inserirà l'utente

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

e si fa con ==

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Eh ma tutto il programma è facile... In base al controllo da una risposta

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

ma il programma deve fare alcune cose, quali sono?

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Deve dare la risposta di un errore fin quando l'utente non la indovina.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024
  1. dare messaggio di errore, ok
    altro?

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Fa riprovare, quindi un ciclo

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

ma no

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Eh che ne so

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

allora riposati e poi ci pensi

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Ahah ok

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Questo deve fare il programma e in particolare il modulo cai: Moltiplica i
due numeri casuali; confronta la risposta con il risultato e se è corretta
dice una cosa altrimenti ne dice un'altra e fa riprovare..

2016-06-07 23:41 GMT+02:00 Fabio Z Tessitore [email protected]:

allora riposati e poi ci pensi


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#5 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/APQmncRrYkH-tkIo61MD7CIaGh3BwDU1ks5qJeWSgaJpZM4IwToc
.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

Ricapitoliamo:

la moltiplicazione si fa con *
il confronto con ==

rimane valido il concetto che si deve dire una cosa se la risposta è corretta e un'altra se la risposta è errata.

Per trovare le altre cose di cui è responsabile il modulo cai ricorda che il modulo random è un modulo di supporto che non sa niente del programma.

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Ma questo è il programma, non c'è nient'altro da fare..

Il giorno 09 giu 2016, alle ore 22:38, Fabio Z Tessitore [email protected] ha scritto:

Ricapitoliamo:

la moltiplicazione si fa con *
il confronto con ==

rimane valido il concetto che si deve dire una cosa se la risposta è corretta e un'altra se la risposta è errata.

Per trovare le altre cose di cui è responsabile il modulo cai ricorda che il modulo random è un modulo di supporto che non sa niente del programma.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

indizio:

nel main non devi usare il modulo random

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Vabbè random deve solo pescare i 2 numeri, poi se la vede cai a moltiplicare ecc.

Il giorno 09 giu 2016, alle ore 23:15, Fabio Z Tessitore [email protected] ha scritto:

indizio:

nel main non devi usare il modulo random


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

non ci capiamo. Nel main non userai random, quindi come li peschi i numeri?

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Li pesco in cai, questo intendevo dire..

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

appunto

quindi ricapitolando serve:

  1. una funzione di inizializzazione del modulo
  2. una funzione per l'estrazione di un numero (secondo i criteri del programma)
  3. una funzione che restituisce un messaggio di risposta esatta
  4. una funzione che restituisce un messaggio di risposta errata

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024

Per inizializzazione che intendete?

Il giorno 10 giu 2016, alle ore 19:30, Fabio Z Tessitore [email protected] ha scritto:

appunto

quindi ricapitolando serve:

  1. una funzione di inizializzazione del modulo
  2. una funzione per l'estrazione di un numero (secondo i criteri del programma)
  3. una funzione che restituisce un messaggio di risposta esatta
  4. una funzione che restituisce un messaggio di risposta errata


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

tutte le operazioni necessarie affinché il modulo funzioni correttamente

inizia a scrivere i prototipi

from cai.

TeoColuccio avatar TeoColuccio commented on August 15, 2024
  1. void init_cai()
  2. int cai_extract()
  3. char* cai_true()
  4. char* cai_false()

Anche se non ho ancora capito a che serve init()...

Il giorno 10 giu 2016, alle ore 19:30, Fabio Z Tessitore [email protected] ha scritto:

appunto

quindi ricapitolando serve:

  1. una funzione di inizializzazione del modulo
  2. una funzione per l'estrazione di un numero (secondo i criteri del programma)
  3. una funzione che restituisce un messaggio di risposta esatta
  4. una funzione che restituisce un messaggio di risposta errata


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

init_cai la facciamo diventare cai_init

poi inizia a scrivere i file random.h e cai.h (ma non i file .c)

infine prova a scrivere un main.c che implementa il programma
(scrivendo il main dovrebbero chiarirsi i dubbi)

from cai.

FabioZTessitore avatar FabioZTessitore commented on August 15, 2024

non viene mai estratto il 9

from cai.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.