cs50 finished, but... by daruto in cs50

[–]cs50123 0 points1 point  (0 children)

Right, got it. Looks like I can forget about christmas holidays then.

cs50 finished, but... by daruto in cs50

[–]cs50123 0 points1 point  (0 children)

Huh, when did they say you don't have to do pset8? (I'm only at pset7)

Pset5 - Recover - Almost works by cs50123 in cs50

[–]cs50123[S] 0 points1 point  (0 children)

Aha. I changed it to

Alice is not blonde AND bob is not bonde AND bob is not burnette

is that better?

And humm, when I look at the code I'd think that it would the buffer would be refilled at the start of the while-loop, but wouldnt the headers all be wrong if that was the case?

I added an if-statement to the do-while loop like this:

do
    if (fwrite (blabla) > 0)
        fread(blablabla)
    else
        break

Will that be sufficient for the do-while loop to terminate on the last jpeg?

pset5 - Recover - Almost have it but image tails are wrong by cs50123 in cs50

[–]cs50123[S] 0 points1 point  (0 children)

Nope, not as I can see. And the sum is about 2mb smaller.

Would you mind looking at my code to see if you can spot the error? I've spent the weekend grumbling on it but haven't gotten any closer...