jim is the best person in the world.
Apr. 13th, 2007 11:52 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)

GlennDathu: here
GlennDathu: this is generally what my code window looks like
GlennDathu: 12 hours a day and shit, ha
GlennDathu: http://glaximus.com/images/codesnippet.png
typhoid kellye: pretty!
typhoid kellye: hahahahaha secret message
(no subject)
Date: 2007-04-14 05:56 am (UTC)(no subject)
Date: 2007-04-15 05:27 pm (UTC)(no subject)
Date: 2007-04-15 06:36 pm (UTC)It's not my fault that i = 0. I didn't know you could make a letter equal a number...that must be that "magic integer" or something like that.
haha
(no subject)
Date: 2007-04-18 06:39 am (UTC)Imagine you're doing a head count at work because some prisoner escaped, or something. So you'd be all...
int CountedNumberOfPrisoners;
for( CountedNumberOfPrisoners = 0; CountedNumberOfPrisoners < CORRECT_NUMBER; CountedNumberOfPrisoners++)
{
if( PrisonerNumber( CountedNumberOfPrisoners).IsGone() )
{
SoundTheAlarm();
PunchSomebody();
}
}
This counts prisoners until you've counted them all, and if at any point one of them is missing, you sound the alarm and punch someone.
That for() up there is three parts: 1) what do i do in the very beginning 2) when do I stop doing this 3) what do I do after each time through.
Then it loops through the part underneath it until part 2 is met. So like me at lunch--
for( iBellyFullness = 0; iBellyFullness < OMG_TIME_TO_PUKE; iBellyFullness++)
{
EatCookie();
DrinkPibb();
}
(no subject)
Date: 2007-04-18 07:04 am (UTC)(no subject)
Date: 2007-04-16 09:59 pm (UTC)(no subject)
Date: 2007-04-17 01:09 am (UTC)also, i added you because i've been reading your journal for awhile, and i figured it was time to quit lurking. hope you don't mind.