GoConqr has a new look! Let us know what you think.

Notes

Jeu Mystère

Fen Pin English 1 page

Content of the notes (1)

Page 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)

Information

Description
Description du programme jeu mystère
Created by
Fen Pin
Views
23
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?