« first day (1274 days earlier)   

12:04 AM
-=15? shouldn't that be -=i?
also does redeclaring i three times work without doing funny things?
I can't see anything wrong with the first one though
 
You're right, that should be -= i, thanks. And as I said, I'm just starting to teach myself, but I think that i should fall out of scope each time anyway?
That may be wrong.
 
no you might be right
I'm just not sure whether the declaration within the for already counts as belonging to the block following it
 
Now I get the same answer on both of them, but it's being accepted on the site. Must have been a copypaste error. Oops.
Thanks for the help :)
 
no problem
 
Does int isPrime(... make sense? Or should I be using bools here? Does C++ have proper bools?
Okay bools are a thing
I don't know where I got the idea that they aren't...
 
12:11 AM
@MartinBüttner got my program producing looping, timed gifs
you don't want to see the code
(I'll re-do all the gifs and then edit them into my answer)
 
@VisualMelon ha, great. looking forward to it :)
 
the way to get it looping is to insert 17 or so bytes
most of which is the word "netscape2"
@MartinBüttner would you mind checking this works and doesn't set your computer on fire or the like visualmelon.onl/103.gif (should loop after 1second delay on the last frame)
 
works like a charm
I'm off to bed
 
thanks for your help
 

« first day (1274 days earlier)