the eror says
'fread' : pointer mismatch for actual parameter 1
this is the line of code
fread ( sRec, sizeof ( struct book ), (size_t)1, library );
the eror says
'fread' : pointer mismatch for actual parameter 1
this is the line of code
fread ( sRec, sizeof ( struct book ), (size_t)1, library );
Hehe, is this my code that I posted earlier?
Anyway, is sRec a pointer to a structure or an array of struct? If not then you need to use the address of operator in your call to fread.
fread ( &sRec, sizeof ( struct book ), (size_t)1, library );
-Prelude
My best code is written with the delete key.