26 lines
511 B
C
26 lines
511 B
C
#include <stdio.h>
|
|
|
|
#include "exercice/ex1-memory-oriented.c"
|
|
// #define MEMORY_ORIENTED
|
|
|
|
#include "exercice/ex4-character-oriented.c"
|
|
#define CHARACTER_ORIENTED
|
|
|
|
|
|
int main() {
|
|
int ret = 0;
|
|
|
|
#ifdef MEMORY_ORIENTED
|
|
printf("--------------------------------------\n");
|
|
printf("Exercice 1: Memory oriented exercice\n");
|
|
ret = ex_memory_oriented();
|
|
#endif
|
|
|
|
#ifdef CHARACTER_ORIENTED
|
|
printf("--------------------------------------\n");
|
|
ret = ex_character_oriented();
|
|
#endif
|
|
|
|
return ret;
|
|
}
|