#include <iostream>
#include <ctime>
#include <cstdlib>
#include "utilitaires.h"
#include "repertoire.h"

using namespace std;

int main()
{
    // Start
    cout << "TP4 starts." << endl;

    // Seed random
    srand( time(0) );

    // Tests
    vectNom prenoms;
    int nbPrenoms;

    vectNom noms;
    int nbNoms;

    // Re génération
    /*nbPrenoms = initTabNomPrenom(prenoms, "Prenoms_TP4.txt");
    nbNoms = initTabNomPrenom(noms, "Noms_TP4.txt");

    genererRepertoire(repertoire, noms, prenoms, nbNoms, nbPrenoms);*/

    // Tableau
    vectPersonne repertoire;
    int nb;

    lectureRepertoireTT(repertoire, nb);

    /*afficherTT(repertoire, nb);*/

    // Listes
    /*ElementListe* theListe = nullptr;

    Personne p;
    p.prenom = "Jean";
    p.num = "42";

    afficherLT(theListe);
    cout << endl << "------" << endl << endl;

    p.nom = "Zambra";
    theListe = ajouterLT(theListe, p);

    afficherLT(theListe);
    cout << endl << "------" << endl << endl;

    p.nom = "Djerroud";
    theListe = ajouterLT(theListe, p);

    afficherLT(theListe);
    cout << endl << "------" << endl << endl;

    p.nom = "Hersemeule";
    theListe = ajouterLT(theListe, p);

    afficherLT(theListe);
    cout << endl << "------" << endl << endl;

    theListe = lectureRepertoireLT();*/

    // End
    return 0;
}