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
40a47028
Commit
40a47028
authored
6 months ago
by
Nikolic
Browse files
Options
Downloads
Patches
Plain Diff
Ajout d'une fonction permettant de parcourir un arbre de manière infixe
parent
12c7cc7e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
24-25/TP14/arbinaire_morse.c
+12
-0
12 additions, 0 deletions
24-25/TP14/arbinaire_morse.c
24-25/TP14/arbinaire_morse.h
+7
-1
7 additions, 1 deletion
24-25/TP14/arbinaire_morse.h
with
19 additions
and
1 deletion
24-25/TP14/arbinaire_morse.c
+
12
−
0
View file @
40a47028
...
@@ -17,3 +17,15 @@ tree nextRight(node * node){
...
@@ -17,3 +17,15 @@ tree nextRight(node * node){
void
nood_print
(
node
*
data
){
void
nood_print
(
node
*
data
){
}
}
void
parcours_infix
(
node
*
node
,
int
n
){
if
(
NULL
!=
node
)
{
parcours_infix
(
nextLeft
(
node
),
n
+
1
);
for
(
int
i
=
0
;
i
<
n
;
i
++
)
{
printf
(
" "
);
}
nood_print
(
node
);
parcours_infix
(
nextRight
(
node
),
n
+
1
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
24-25/TP14/arbinaire_morse.h
+
7
−
1
View file @
40a47028
...
@@ -29,3 +29,9 @@ tree nextRight(node * node);
...
@@ -29,3 +29,9 @@ tree nextRight(node * node);
* Function permettant d'afficher un l'arbre
* Function permettant d'afficher un l'arbre
*/
*/
void
nood_print
(
node
*
data
);
void
nood_print
(
node
*
data
);
/*
* Function permettant d'effectuer un parcours d'ordre infixe (GRD)
*/
void
parcours_infix
(
node
*
node
,
int
n
);
\ No newline at end of file
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