spooky_nine: (katamari)
[personal profile] spooky_nine


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)
From: [identity profile] g4sheriff.livejournal.com
1 does not fucking equal 0. Man, I thought he went to school.

(no subject)

Date: 2007-04-15 05:27 pm (UTC)
From: [identity profile] glaximus.livejournal.com
that is an i, you sloppy milkshake.

(no subject)

Date: 2007-04-15 06:36 pm (UTC)
From: [identity profile] g4sheriff.livejournal.com
Sloppy milkshake?

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)
From: [identity profile] glaximus.livejournal.com
So, when counting something you need a counter, some place in memory to hold the count. A variable.

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)
From: [identity profile] g4sheriff.livejournal.com
hahaha, PunchSomebody....that DOES sound like a regular day at work!

(no subject)

Date: 2007-04-16 09:59 pm (UTC)
From: [identity profile] unrepentant.livejournal.com
'Ey, I'm an artist. I couldn't program if my life depended on it!

(no subject)

Date: 2007-04-17 01:09 am (UTC)
From: [identity profile] spooky-nine.livejournal.com
ha, i'm kind of okay at html, but that's about it.

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.

Profile

spooky_nine: (Default)
spooky_nine

February 2011

S M T W T F S
  12 345
6789 101112
13 141516171819
20 212223242526
27 28     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags