Write a function in C++ to add new objects at the bottom of a binary file“STUD.DAT”,
assuming the binary file is containing the objects of the following class.
class STUD {
int Rno;
char Name[20];
public:void Enter()
{
cin>>Rno;
gets(Name);
}
void Display()
{
cout<
}
};
Answers
Answered by
1
Answer:
ExplanationWrite a function in C++ to add more new objects at the bottom of a binary file "STUDENT.dat", assuming the binary file is containing the objects of the following class : class STU { int Rno; char Sname[20]; public: void Enter() { cin>>Rno;gets(Sname); } void show() { count << Rno<:
Similar questions