Tuesday, February 06, 2007

//Get Matt to tell you wtf he wants for lunch

food Lunch = new food();
boy Matt = new boy();
girl Emily = new girl();


while( 1 ){
if( Matt.getFoodPreference() != NULL )
{ Lunch = Matt.getFoodPreference();
break;
}
}

// Because Matt is a gentleman, Emily eats first
Emily.eat(Lunch);
Matt.eat(Lunch);

3 Comments:

At 6:06 PM , Blogger Danger said...

You have a syntax error where you initialized the Lunch object.

noob.

 
At 8:02 PM , Blogger Emily Kate said...

Give me a break, I'd been coding in non-case-sensitive VB all morning.

 
At 5:59 PM , Blogger Danger said...

I don't wanna look soft in front of the nerds!

Fine, I'll let it go just this once.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home