1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <set>
#include <numeric>
#include <exception>
#include <map>
#include <math.h>
#include "EcrireSequence.h"
std::ofstream fichier ("Sequence_Binaire", std::ios::out | std::ios::trunc);
std::ofstream EcireSequence (std::map<std::string, std::map<std::string, int> > &maMatriceFinale)
{
for( std::map<std::string, std::map<std::string, int> >::iterator it1 = maMatriceFinale.begin(); it1!= maMatriceFinale.end(); ++it1){
std::map<std::string, int>::iterator it2 = it1->second.begin(); it2 != it1->second.end(); ++it2;
fichier << ">" << it1->first << '\n';
for(it2 = it1->second.begin(); it2 != it1->second.end(); ++it2)
fichier << it2->second ;
fichier << std::endl;
//FILE << it1->second.size()<< endl;
fichier << std::endl;
}
return(fichier);
} |
Partager