Welcome to MSDN Blogs Sign in | Join | Help

Hello World

private static void Main(string[] args)
{
    Person father = new Person();
    Person mother = new Person();
    Person girl = new Person();
 
    Person boy = mother.Emit(mother.Union(father),
        new DateTime(2007, 4, 21));
    girl.PromoteTo(Rank.BigSister);
 
    mother.Condition = Conditions.Well | Conditions.Tired;
    father.Condition = Conditions.Well | Conditions.Tired;
    boy.Condition = Conditions.Well;
    girl.Condition = Conditions.Happy;
 
    Console.WriteLine(boy.ToString());
}
Published Sunday, April 22, 2007 12:37 AM by ploeh
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Hello World

Saturday, April 21, 2007 6:47 PM by MikeeeG

Simple but elegant

# re: Hello World

Saturday, April 21, 2007 6:55 PM by Benjamin

Congratulations! :)

# re: Hello World

Saturday, April 21, 2007 8:28 PM by INote

Good one...

# re: Hello World

Saturday, April 21, 2007 10:00 PM by Eber Irigoyen

Console.WriteLine("Congratulations!");

# 一个很精致的HelloWorld,你看得懂么?

Sunday, April 22, 2007 9:54 AM by downmoon

MDSN的Blog上看到一篇很精致的文章--“HelloWorld

# re: Hello World

Sunday, April 22, 2007 11:01 AM by Ludwig Kruger

Congratulations! Enjoy the riches of fatherhood.

# Off Topic: Yet another way to announce

Sunday, April 22, 2007 5:58 PM by Rachit's Blog

Off Topic: Yet another way to announce

# re: Hello World

Monday, April 23, 2007 8:09 AM by Lou

Nicely said - and congratulations!

# re: Hello World

Monday, April 23, 2007 2:47 PM by watch live tv online

Congratulations, argg..java ...i'm rusty on it so I won't even try, but here's your future (seeing as how everythings web oriented, this is in js):

function futurewithchild(){

var parents="happy";

var money=75000*24;

var child=0;

for (child<24;child++){

money=money-(money*(child*0.5));

if (child<18){

parents="stressed"

}else{

parents="waiting for child to leave"

}

yea the code is sloppy but :p

# re: Hello World

Tuesday, April 24, 2007 2:07 AM by Jimmy

Tillykke!

# re: Hello World

Tuesday, April 24, 2007 6:06 AM by Jan Daniel Andersen

Tillykke! Rimeligt nørdet og helt perfekt :-).

# re: Hello World

Tuesday, April 24, 2007 12:58 PM by David Jaggie

I find the lack of error handling appalling.  A baby’s first core dump is usually quite messy to clean up after, if you’re unprepared.

(Congrats!)

# re: Hello World

Tuesday, April 24, 2007 1:26 PM by robertbaumann

private static void Main(string[] args)

{    

   Person visitor = new Person("Robert Baumann");

   Person mark = new Person();

   visitor.Congratulate(mark);

}

# re: Hello World

Wednesday, April 25, 2007 9:14 AM by Mark

:-) :-) Stort tillykke!

# re: Hello World

Friday, May 11, 2007 5:15 PM by ploeh

Thank you, all, for your greetings :)

# re: Hello World

Tuesday, June 05, 2007 11:43 AM by Josh Stodola

Response.ContentType = "text/congrats"

Response.Write("Congratulations, my friend")

Response.End()

# Hello World

Saturday, June 09, 2007 7:31 AM by MarkRonn

Stort tillykke til Mark Seemann, som fik en velskabt søn. Som den superkoder han er, blev han nødt til

# re: Hello World

Saturday, June 09, 2007 4:55 PM by Morten

I think there is missing some initialization stuff between mother and father to make that work :-)

Perhaps some locking and syncronization between the two parent threads.

# re: Hello World

Saturday, June 16, 2007 7:25 AM by Femi

Here is a simple hello world program

#include <stdio.h>

#include <stdlib.h>

int main(void)

{

char name;

printf("Hello dere,..\n\n");

printf("What is your name?\n\n");

scanf("%s",name);

printf("Hello %s, bye...",name);

return (EXIT_SUCCESS);

}

# 一个很精致的HelloWorld,你看得懂么?

Saturday, December 29, 2007 1:01 AM by 邀月

MDSN的Blog上看到一篇很精致的文章--“HelloWorld

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker