c++
Programas “Hola mundo”
by Jose Antonio Bueno on Jul.13, 2009, under c# .Net, c++
Cuando un programador inicia a prender un nuevo lenguaje de programacion es muy tipico iniciar con el famoso “Hola mundo”, que no es mas que un simple ejemplo de un nuevo programa de computadora en donde aparece la leyenda “Hola mundo”.
Â
Y aqui les dejo una pequeña compilacion para los nuevos programadores:
Suerte!
Â
 dot Net Linq Programmer
   ===================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace JABS.VS2010.win32k
{
   class Program
   {
       static void Main(string[] args)
       {
           string[] helloWorld = { "Hello", "Jose", "Antonio", "Bueno!", "World", "www.antoniobs.net" };
           try
           {
               var helloLinq = from word in helloWorld
                               where word.Length == 5
                               select word;
               foreach (string s in helloLinq)
                   Console.Write(s + " ");
              Â
           }
           catch (Exception err)
           {
               Console.WriteLine(err.Message);
           }
           finally
           {
               Console.WriteLine("nPress a key to continue...");
               Console.ReadKey();
           }
          Â
       }
   }
}
Â
Â
 High School/Jr.High
   ===================
   10 PRINT "HELLO WORLD"    20 END
   First year in College
   =====================
   program Hello(input, output)
     begin
writeln('Hello World')
     end.
Â
Senior year in College
   ======================
   (defun hello      (print (cons 'Hello (list 'World))))
Â
New professional
================
    #include <stdio.h>
   void main(void)
   {
     char *message[] = {"Hello ", "World"};
     int i;
     for(i = 0; i < 2; ++i)
printf("%s", message[i]);
     printf("n");
   }
Â
Seasoned professional
   =====================
Â
#include <iostream.h>
   #include <string.h>
   class string
   {
   private:
     int size;
     char *ptr;
   public:
     string() : size(0), ptr(new char('