¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Jeu Mystère

Fen Pin Inglés 1 página

Contenido del apunte (1)

Página 1

Jeu Mystère

I - Commandes Préprocesseur

Inclure 3 bibliothèques :

stdio.h (printf, scanf)

stdlib.h (srand)

time.h (time)

II - Fonction Principale

Informations :

Nom : main

Type : entier

Argument : néant (void)

Déclaration Variables (int) :

rp : replay

lvl : level

n_usr : number of user

n_myst : mysterious number

n_ipt : input number

vld_ipt : valid input

Initialisation des Variables (int) :

rp = 0

lvl = 1

n_usr = 1

vld_ipt = 0

III - Boucles

1 - Boucle replay

Type : Do / While

Condition : rp == 1

Do : Do {..} while ( vld_ipt == 1) :

Printf : règles + sélection lvl

scanf : lvl

if (lvl == 1 || lvl == 2 || lvl == 3) vld_ipt =1

Boucle incluses :

Sélection lvl (do while)

Información

Descripción
Description du programme jeu mystère
Creado por
Fen Pin
Visitas
23
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?