mirror of
https://github.com/BreizhHardware/projetCGroupe8.git
synced 2026-03-18 21:30:32 +01:00
28 lines
687 B
C
28 lines
687 B
C
#define LENGTH 12600
|
|
|
|
#include "Filmotheque.h"
|
|
#include "List.h"
|
|
#include "Movie.h"
|
|
|
|
int main(){
|
|
|
|
char* fichier = "../BD_small.txt";
|
|
|
|
//Create a table of list named tableau
|
|
struct List* tableau[LENGTH];
|
|
for(int i = 0; i < LENGTH; i++){
|
|
tableau[i] = NULL;
|
|
}
|
|
|
|
struct Filmotheque* filmo = createEmptyFilmo();
|
|
//Create the filmotheque with the file BD_small.txt
|
|
createTable(fichier,tableau,filmo);
|
|
|
|
struct List* result = searchByDirector(filmo,"allen");
|
|
printList(result);
|
|
printf("\n-------------------------------------------------------\n");
|
|
struct List* result2 = searchByTime(tableau,"94");
|
|
printList(result2);
|
|
|
|
return 0;
|
|
} |