Skip to content
Snippets Groups Projects
Commit 89e10706 authored by Martin's avatar Martin
Browse files

Correction main

parent 807e3208
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,15 @@ using namespace std::chrono;
string fichier;
int* sommeAdditiveArray;
SuffixTree *arbre;
void parseFile(string namefile) // Enregitrement du fichier dans une variable
{
string line;
ifstream myfile;
myfile.open(namefile);
if ((myfile.rdstate() & ifstream::failbit ) != 0 ){
std::cout << "erreur ouverture du fichier a parse" << std::endl;
std::cout << "erreur ouverture du fichier a parser" << std::endl;
exit(0);
}
if (myfile.is_open())
......@@ -217,12 +219,6 @@ uint64_t nbAdditifWithSommeOpenMp(int nb){
}
void arbreDesSuffixes(){
SuffixTree *tree = new SuffixTree(fichier.substr(0,41200));
int id = 0;
}
void nbAdditifsAvecSansOpenMP(){
#ifdef CHRONO
......@@ -253,6 +249,13 @@ void nbAdditifsAvecSansOpenMP(){
}
void arbreDesSuffixes(){
int size = 41200;
arbre = new SuffixTree(fichier.substr(0,size));
//SuffixTree = arbre->nodes[0]->child
//arbre->visualize();
}
int main(){
//parseFile("testfiles/100000_with_erro.txt");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment