|
Rapport cryptarithm 1.0
Dev-linux
|
Mon code pour cryptarithm. More...
#include <stdio.h>#include <string.h>#include <stdlib.h>
Go to the source code of this file.
Macros | |
| #define | MAX_LETTRES 10 |
| #define | MAX_MOTS 5 |
| #define | MAX_LONGUEUR 100 |
Functions | |
| int | verifier_solution (char mots[MAX_MOTS][MAX_LONGUEUR], int N, char totalStr[MAX_LONGUEUR], int chiffres[], char lettres[], int nb_lettres) |
| vérifie si la combinaison satisfait l'addition More... | |
| void | permuter (int chiffres[], int index, int utilisé[], char mots[MAX_MOTS][MAX_LONGUEUR], int N, char totalStr[MAX_LONGUEUR], char lettres[], int nb_lettres) |
| génère les permutations des chiffres More... | |
| int | main () |
| void permuter | ( | int | chiffres[], |
| int | index, | ||
| int | utilisé[], | ||
| char | mots[MAX_MOTS][MAX_LONGUEUR], | ||
| int | N, | ||
| char | totalStr[MAX_LONGUEUR], | ||
| char | lettres[], | ||
| int | nb_lettres | ||
| ) |
génère les permutations des chiffres
| chiffres | un tableau d'entier naturel |
| index | un entier naturel |
| utilisé | un tableau d'entier naturel |
| mots | un tableau de chaines de caractères |
| N | un entier naturel |
| totalStr | une chaine de caractère |
| lettres | une chaine de caractère |
| nb_lettres | un entier naturel |
Definition at line 81 of file code.c.


| int verifier_solution | ( | char | mots[MAX_MOTS][MAX_LONGUEUR], |
| int | N, | ||
| char | totalStr[MAX_LONGUEUR], | ||
| int | chiffres[], | ||
| char | lettres[], | ||
| int | nb_lettres | ||
| ) |
vérifie si la combinaison satisfait l'addition
| mots | un tableau de chaines de caractères |
| N | un entier naturel |
| totalStr | une chaine de caractères |
| chiffres | un entier naturel |
| lettres | une chaine de caractère |
| nb_lettres | un entier naturel |
Definition at line 48 of file code.c.
