Bonjour � tous,
Je cherche � imprimer des donn�es dans un csv.
Il semblerait que j'ai un probl�me, il ne m'ouvre m�me pas de fichier.
Ma map est bien remplie.
Mon code est le suivant
.cpp
J'ai le message d'erreur suivant :
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 bool LocalSystem::printcsv() { ifstream fout("out.csv"); if (!fout) { cerr<<"Can't print to CSV"<<endl; } for (MapOfStringDouble::iterator iter = NewLoadPPerLine->begin(); iter!=NewLoadPPerLine->end(); iter++) { fout<<iter->first<<";"<<iter->second<<endl; } fout.close(); return true; }
Error 1 error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::_Smanip<_Arg> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits>
Merci � tous.![]()
Partager