Write a function in C++ to search for a laptop from a binary file “LAPTOP.DAT” containing the objects of class
LAPTOP (as defined below). The user should enter the Model No and the function should search and display the
details of the laptop.
class LAPTOP {
long ModelNo;
float RAM,HDD;
char Details[120];
public:
void StockEnter()
{ cin>>Modelno>>RAM>>HDD;
gets(Details);
}
void StockDisplay()
{ cout<<ModelNo<<RAM<<HDD<<Details<<endl;
}
long ReturnModelNo()
{ return ModelNo; }
};