[box]

Ans

void Read ( )

{

TRAIN T;

ifstream fin;

fin. open (TRAIN.DAT, ios::binary);

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

{

if(strcmp(T.GetTo() ,Delhi)==O)

T.Show() ;

}

fin.close(); //Ignore

}

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