Write a C++ program to write 5 records into a binary file "EMP. DAT" corresponding to the following class emp.
class emp
{
into eno;
char ename[20];
public:
void getdata ( )
{ cout <<"Enter employment no";
cin >>eno;
cout <<"Enter name ";
cin>>ename; }
void put data ( )
{ cout <<"empno = "<<eno <<endl;
cout <<"Name= " <<ename <<endl; } };
1
Expert's answer
2019-04-28T07:32:56-0400
Dear Shivam, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment