Rapport cryptarithm 1.0
Dev-linux
Functions | Variables
other_code.c File Reference

Code d'un codingamer. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for other_code.c:

Go to the source code of this file.

Functions

int cmp (const void *a, const void *b)
 trie les lettres alphabétiquement More...
 
int is_initial (char c)
 trie les lettres alphabétiquement More...
 
void test ()
 vérifie si l'addition est correcte More...
 
void assign (int i)
 teste chaque combinaison avant de trouver la bonne More...
 
int main ()
 

Variables

int N
 
int letters
 
int digit_used [10]
 
int letter_to_digit [10]
 
char word [6][11]
 
char letter [11]
 
char * p
 
char line [6][11]
 

Detailed Description

Code d'un codingamer.

Author
Eliott
ESBELIN
Version
finale
Date
20 avril 2025

Definition in file other_code.c.

Function Documentation

◆ assign()

void assign ( int  i)

teste chaque combinaison avant de trouver la bonne

Parameters
iun entier naturel

Definition at line 70 of file other_code.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cmp()

int cmp ( const void *  a,
const void *  b 
)

trie les lettres alphabétiquement

Parameters
ade type const void *
bde type const void *
Returns
la différence entre les deux caractères (suivant le code ASCII)

Definition at line 25 of file other_code.c.

Here is the caller graph for this function:

◆ is_initial()

int is_initial ( char  c)

trie les lettres alphabétiquement

Parameters
cun caractère
Returns
1 si la lettre est en début de mot
0 si la lettre n'est pas en début de mot

Definition at line 35 of file other_code.c.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 82 of file other_code.c.

Here is the call graph for this function:

◆ test()

void test ( )

vérifie si l'addition est correcte

Returns
retour de fonction sans rien faire si la somme n'est pas correcte

Definition at line 47 of file other_code.c.

Here is the caller graph for this function:

Variable Documentation

◆ digit_used

int digit_used[10]

Definition at line 14 of file other_code.c.

◆ letter

char letter[11]

Definition at line 15 of file other_code.c.

◆ letter_to_digit

int letter_to_digit[10]

Definition at line 14 of file other_code.c.

◆ letters

int letters

Definition at line 14 of file other_code.c.

◆ line

char line[6][11]

Definition at line 15 of file other_code.c.

◆ N

int N

Definition at line 14 of file other_code.c.

◆ p

char * p

Definition at line 15 of file other_code.c.

◆ word

char word[6][11]

Definition at line 15 of file other_code.c.