Skip to content
Snippets Groups Projects
Commit 807e3208 authored by Martin's avatar Martin
Browse files

sauvegarde

parent bebf93f3
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ void parseFile(string namefile) // Enregitrement du fichier dans une variable
ifstream myfile;
myfile.open(namefile);
if ((myfile.rdstate() & ifstream::failbit ) != 0 ){
std::cout << "erreur ouverture" << std::endl;
std::cout << "erreur ouverture du fichier a parse" << std::endl;
exit(0);
}
if (myfile.is_open())
......@@ -217,10 +217,13 @@ uint64_t nbAdditifWithSommeOpenMp(int nb){
}
int main(){
//parseFile("testfiles/100000_with_erro.txt");
parseFile("ACF_1000000_over_0123.txt");
void arbreDesSuffixes(){
SuffixTree *tree = new SuffixTree(fichier.substr(0,41200));
int id = 0;
}
void nbAdditifsAvecSansOpenMP(){
#ifdef CHRONO
high_resolution_clock::time_point t1 = high_resolution_clock::now();
......@@ -247,7 +250,19 @@ int main(){
duration<double> time_span2 = duration_cast<duration<double>>(t3 - t1);
std::cout << "Durée :" << time_span2.count() << " secondes sans OpenMp" << std::endl;
#endif
}
int main(){
//parseFile("testfiles/100000_with_erro.txt");
//parseFile("motstests/ACF_100_over_0123.txt");
parseFile("motstests/ACF_1000000_over_0123.txt");
//nbAdditifsAvecSansOpenMP();
arbreDesSuffixes();
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment