Page 1 of 2

Waiting for an increment

Posted: Wed Nov 10, 2010 7:32 pm
by Deques

Code: Select all

$wong = 2;

do {
	print_f("Not yet");	
	$wong = waitBaby();
} while ($wong == 2)

Re: Waiting for an increment

Posted: Wed Nov 10, 2010 7:33 pm
by Ailise
don't forget to tell us when the loop is done... we don't want get stuck in an endless loop here :P

Re: Waiting for an increment

Posted: Wed Nov 10, 2010 7:36 pm
by Deques
Will do!

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 3:34 am
by Kassidy
I'm guessing that the response "echo 'congratulations'" is appropriate for that statement. ;)

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 9:48 am
by Faalstar
documentation is horrid.

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 10:32 am
by DeadWolf
Faalstar wrote:documentation is horrid.

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 12:38 pm
by Dr. Sheexy
Congrats Dekky! :D
Still sad that you decided against naming it Sheexy. :P

Also that's hilarious Faal. XD

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 8:17 pm
by Kimiko
Congo rats! :D

Re: Waiting for an increment

Posted: Fri Nov 12, 2010 4:42 am
by Faalstar
No really, it is.
I'm not a programmer.
I don't know what it means.

Re: Waiting for an increment

Posted: Fri Nov 12, 2010 9:02 am
by Ailise
Deques wrote:

Code: Select all

$wong = 2;

do {
	print_f("Not yet");	
	$wong = waitBaby();
} while ($wong == 2)
$wong = 2; <-- Deques lastname is Wong, so right now he and his wife are 2.

do { <-- start of loop
print_f("Not yet"); <-- means it will display/write the text "Not yet"
$wong = waitBaby(); <-- this runs some function (unknown to us) that check if Wong family is still 2ppl or 3ppl.
}while ($wong == 2) <-- if the waitBaby()/$wong is still 2, then the loop will begin from do { again. If $wong is something else... like 3. Than the loop will end.
Else it will keep write
Not yet
Not yet
Not yet
....

until the baby comes.

:love: hope i could explain :P

Re: Waiting for an increment

Posted: Fri Nov 26, 2010 3:20 am
by Deques
Totally forgot to tell you guys that the loop is broken!

My wife gave birth to a healthy boy last week :)

Re: Waiting for an increment

Posted: Fri Nov 26, 2010 3:36 am
by Kimiko
Name? Pictures? ^_^

Re: Waiting for an increment

Posted: Fri Nov 26, 2010 3:53 am
by DeadWolf
Integers are immutable. Do some garbage collecting.

Oh, and post some pictures.

Re: Waiting for an increment

Posted: Fri Nov 26, 2010 4:36 am
by Dr. Sheexy
Congrats Dekky!

Seconding Kimiko and Deadwolf for name and pics!

Re: Waiting for an increment

Posted: Fri Nov 26, 2010 6:32 am
by Faalstar
Oh I get it. He had a baby.