Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
prog-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
stefan.nikolic
prog-c
Commits
12c7cc7e
Commit
12c7cc7e
authored
6 months ago
by
Nikolic
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de la structure de donnés et des fonctions de base
parent
c15bc327
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
24-25/TP14/arbinaire_morse.c
+19
-0
19 additions, 0 deletions
24-25/TP14/arbinaire_morse.c
24-25/TP14/arbinaire_morse.h
+31
-0
31 additions, 0 deletions
24-25/TP14/arbinaire_morse.h
24-25/TP14/main.c
+11
-0
11 additions, 0 deletions
24-25/TP14/main.c
with
61 additions
and
0 deletions
24-25/TP14/arbinaire_morse.c
+
19
−
0
View file @
12c7cc7e
#include
"arbinaire_morse.h"
#include
<stdlib.h>
#include
<stdio.h>
tree
init
(){
node
*
new
=
NULL
;
return
new
;
}
tree
nextLeft
(
node
*
node
){
return
node
->
left
;
}
tree
nextRight
(
node
*
node
){
return
node
->
right
;
}
void
nood_print
(
node
*
data
){
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
24-25/TP14/arbinaire_morse.h
+
31
−
0
View file @
12c7cc7e
// Structure de donné pour les charactères
typedef
char
data_t
;
// Structure de donné pour l'arbe
typedef
struct
node
{
data_t
d
;
struct
node
*
left
;
struct
node
*
right
;
}
node
;
typedef
node
*
tree
;
/*
* Function permettant d'initiliaser un arbre
*/
tree
init
();
/*
* Function permettant de récuperer l'élement à gauche de l'arbre
*/
tree
nextLeft
(
tree
tree
);
/*
* Function permettant de récuperer l'élement à droite de l'arbre
*/
tree
nextRight
(
node
*
node
);
/*
* Function permettant d'afficher un l'arbre
*/
void
nood_print
(
node
*
data
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
24-25/TP14/main.c
+
11
−
0
View file @
12c7cc7e
#include
"arbinaire_morse.h"
#include
<stdlib.h>
#include
<stdbool.h>
#include
<stdio.h>
int
main
(
int
argc
,
char
const
*
argv
[])
{
return
EXIT_SUCCESS
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment