Home > Back-end >  C file read into a infinite loop
C file read into a infinite loop

Time:04-20

 ifstream ifs (filename, the ios: : binary | ios: : in); 
Vector Fvec;
while (! The ifs. Eof ())
{
Float b;
The ifs. Read (reinterpret_cast & lt; Char * & gt; (& amp; B), sizeof b);
Fvec. Push_back (b);
}
The ifs. Close ();


Where is the problem?
  • Related