Page 1 of 2

Waiting for an increment

Posted: Thu Nov 11, 2010 7:32 am
by Deques

Code: Select all

$wong = 2;

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

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 7:33 am
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: Thu Nov 11, 2010 7:36 am
by Deques
Will do!

Re: Waiting for an increment

Posted: Thu Nov 11, 2010 3:34 pm
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 pm
by Faalstar
documentation is horrid.

Re: Waiting for an increment

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

Re: Waiting for an increment

Posted: Fri Nov 12, 2010 12:38 am
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: Fri Nov 12, 2010 8:17 am
by Kimiko
Congo rats! :D

Re: Waiting for an increment

Posted: Fri Nov 12, 2010 4:42 pm
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 pm
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 pm
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 pm
by Kimiko
Name? Pictures? ^_^

Re: Waiting for an increment

Posted: Fri Nov 26, 2010 3:53 pm
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 pm
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 pm
by Faalstar
Oh I get it. He had a baby.