[box]

Ans.

 void Search( )

{

LAPTOP L;

long modelnum;

cin>>modelnum;

ifstream fin;

fin.open(“LAPTOP.DAT”,ios::binary|ios::in);

while(fin.read((char*)&L,sizeof(L)))

{

if(L.ReturnModelNo( )==modelnum)

L.StockDisplay( );

}

fin.close(); //Ignore

}

[/box]
Rate Us
error: Content is protected !!