Menu

[solved] – Question 88755

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; } };

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *