Create a binary file in C++ 'FUN.DAT' containing objects belonging to a class'LAUGHTER'(as mentioned)-?
Write a user defined function to add more objects in the file at the bottom and read those objects from the file.
class LAUGHTER
{
int idno;
char type[5];
char desc[255];
public:
void newentery()
{
cin>>idno;
gets(type);
gets(desc);
}
void show-on-screen()
{
cout<<idno;
cout<<type;
cout<<desc<<endl;
}
};
You forgot to ask question. Copying and pasting a homework assignment does not count as asking a question. Ask a specific question, in your own words, about whichever part of this you are having difficulty with. Then you will get good help.