Wywołaniem funkcji zapisu do pliku

0

Otóż wyskakują mi takie 2 errory

//Severity Code Description Project File Line Suppression State
Error (active) function "std::basic_fstream<_Elem, _Traits>::basic_fstream(const std::basic_fstream<_Elem, _Traits>::_Myt &) [with _Elem=char, _Traits=std::char_traits<char>]" (declared at line 1244 of "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\fstream") cannot be referenced -- it is a deleted function trenujem c:\Users\Speszal\Source\Repos\Jakub-Sadel-gr61-repo\poligon\trenujem\trenujem\trenujem.cpp 59 //

//Severity Code Description Project File Line Suppression State
Error C2280 'std::basic_fstream<char,std::char_traits<char>>::basic_fstream(const std::basic_fstream<char,std::char_traits<char>> &)': attempting to reference a deleted function trenujem c:\users\speszal\source\repos\jakub-sadel-gr61-repo\poligon\trenujem\trenujem\trenujem.cpp 59 //

i nie wiem do końca co robić, skoro program działa poprawnie i funkcja zapisuje mi dane do pliku

1 użytkowników online, w tym zalogowanych: 0, gości: 1