I guess that backfired, huh? I just made a quick re-write of that function.
Oh well, just learn the advice; don't copy my sloppy re-coding :p
Type: Posts; User: Elysia
I guess that backfired, huh? I just made a quick re-write of that function.
Oh well, just learn the advice; don't copy my sloppy re-coding :p
Instead of checking for success, check for errors. That way, you don't need huge nested if statements which Microsoft is so fond of.
fp.seekp(RecNum*sizeof(s), ios::beg);
if (!fp)
{
// Handle...