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
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
Social Sciences,
9 days ago
Hindi,
19 days ago
Geography,
19 days ago
Social Sciences,
9 months ago
Math,
9 months ago