+ 2
Files in C++
I am beginner in C++. I am learning working with files on C++ now. So I in my programm I create a class account which contains name and phone number of people. I created objects and wrote them with function write() of class ifstream.Function wrote Objects succesfully. But when I tried to read with function read() of ofstream, I was confused. Even I entered only one object the function eof() to check eof didn't work well. I didnt understand what is problem here The problem https://code.sololearn.com/cwg5O9ExdLtX/?ref=app
2 Respostas
0
try this
may be there is some name error or syntax error but the idea will work
i hope this will help
https://code.sololearn.com/c97jOzM2vbTd/#