repositories
/
TD_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP 13 exo1: Implement more asked features and test them
[TD_C.git]
/
TP_13
/
exo1
/
src
/
main.c
diff --git
a/TP_13/exo1/src/main.c
b/TP_13/exo1/src/main.c
index 658930e3c75be49a87ef13a9735a653c8576941d..ea4abc39e67b739c04fcba45a5f142a0f2a31491 100644
(file)
--- a/
TP_13/exo1/src/main.c
+++ b/
TP_13/exo1/src/main.c
@@
-7,17
+7,17
@@
int main() {
int* tab = NULL;
int main() {
int* tab = NULL;
- const unsigned tab_size = 11;
- tab = create_tab(tab, tab_size);
+ unsigned tab_size = 0;
+
+ tab = prompt_array(tab, &tab_size);
printf("%d\n", tab_size);
display_array(tab, tab_size);
printf("%d\n", tab_size);
display_array(tab, tab_size);
- const unsigned tab_new_size = 20;
- tab = resize_tab(tab, tab_new_size);
+ sort_tab(tab, tab_size, ascending_and_odd);
- display_array(tab, tab_
new_
size);
+ display_array(tab, tab_size);
free_tab(tab);
exit(EXIT_SUCCESS);
free_tab(tab);
exit(EXIT_SUCCESS);