次の方法で共有


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());
 }

Comments

  • Anonymous
    April 21, 2007
    Simple but elegant

  • Anonymous
    April 21, 2007
    Congratulations! :)

  • Anonymous
    April 21, 2007
    Good one...

  • Anonymous
    April 21, 2007
    Console.WriteLine("Congratulations!");

  • Anonymous
    April 22, 2007
    MDSN的Blog上看到一篇很精致的文章--“HelloWorld

  • Anonymous
    April 22, 2007
    Congratulations! Enjoy the riches of fatherhood.

  • Anonymous
    April 22, 2007
    Off Topic: Yet another way to announce

  • Anonymous
    April 23, 2007
    Nicely said - and congratulations!

  • Anonymous
    April 23, 2007
    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=7500024; 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

  • Anonymous
    April 23, 2007
    Tillykke!

  • Anonymous
    April 23, 2007
    Tillykke! Rimeligt nørdet og helt perfekt :-).

  • Anonymous
    April 24, 2007
    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!)

  • Anonymous
    April 24, 2007
    private static void Main(string[] args) {        Person visitor = new Person("Robert Baumann");    Person mark = new Person();    visitor.Congratulate(mark); }

  • Anonymous
    April 25, 2007
    :-) :-) Stort tillykke!

  • Anonymous
    May 11, 2007
    Thank you, all, for your greetings :)

  • Anonymous
    June 05, 2007
    Response.ContentType = "text/congrats" Response.Write("Congratulations, my friend") Response.End()

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

  • Anonymous
    June 09, 2007
    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.

  • Anonymous
    June 15, 2007
    Here is a simple hello world program #include <stdio.h> #include <stdlib.h> int main(void) { char name; printf("Hello dere,..nn"); printf("What is your name?nn"); scanf("%s",name); printf("Hello %s, bye...",name); return (EXIT_SUCCESS); }

  • Anonymous
    December 28, 2007
    MDSN的Blog上看到一篇很精致的文章--“HelloWorld