I have written a program to enter, edit, show and search for data with ID. I wrote it using files, the program runs but the data is not shown in the above sections. Is it possible to help me with the problem. I attached the show part
void reportdata()
{
person member;
fstream fp("company.dat",ios::out|ios::in|ios::binary);
fp.read((char*)(&member), sizeof(person))