Need Help, Working at this error for hours
The program compiled without error, but when I ran it, it collapsed without staying what cause the collapse(I hate this). The program has two parts: first to store the data in a .txt file and the second part to obtain the data from the .txt file.
The first part ran fine. The data is able to write on the .txt file.
The second part is the problem, and I have spent hrs on it without any progress at all. The function that retrieve data from the .txt file is the member function of school: retrieve_file().
I wrote some data in the main, so when you run the program, a .txt file will create by the write_file(). I commented out the retrieve part. Please HELP. Thank you in advance. Files attached. I used Dev c++.