Computer Science, asked by souvik2095, 19 days ago

Consider the following class declaration:
class student
{
int addno;
char name[90];
float totalmarks;
public :
void getinfo()
{cin>>addno>>name>>totalmarks ;}
void showinfo ()
{ cout<< addno< float rettotmarks ()
{ return totalmarks;} };
Give function definition to do the following :
(i)write the objects of student to a binary file.
(ii) Read the objects of student from a binary file and display all the object on the screen where totalmarks is between 456 and 498 .

Answers

Answered by saritasharma96301
0

Answer:

cin>>addno>>name>>totalmarks ;}

void showinfo ()

{ cout<< addno< float rettotmarks ()

{ return totalmarks;} };

Give function definition to do the following :

(i)write the objects of student to a binary file.

(ii) Read the objects of student from a binary file and display all the object on the screen where totalmarks is between 456 and 498 .

Explanation:

please mark . me as a brainlist

Similar questions