Write a function in C++ to read and display the details of all the users whose status is 'A'(i.e Active) from a binary file "USERS.DAT". Assuming the binary file"USER.DAT" is containing objects of class USER which is defined as follow:
class USER
{int UID; // User ID
char UNAME[20]; //Username
char Status; //User type: A Active I Inactive
public:
void Register(); //function to enter content
void show(); //function to display all dat members
char GetStatus() {return Status;}
};
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment