| << | >> | |||||
| Lu | Ma | Mi | Ju | Vi | Sá | Do |
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||
Martes, 07 de junio de 2005
Primer año en la Universidad:
10 PRINT "HELLO WORLD"
20 END
Segundo año en la Universidad:
program Hello(input, output)
begin
writeln('Hello World')
end
Último año en la Universidad:
(defun hello
(print
(cons 'Hello (list 'World))))
Recién graduado:
#include
{
char *message[] = {"Hello ", "World"}; int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}
Profesional con experiencia:
#include
{
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('\0')) {}
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator <<(ostream &, const string &);
string &operator=(const char *);
};
ostream &operator<<(ostream &stream, const string &s)
{
return(stream << s.ptr);
}
string &string::operator=(const char *chrs)
{
if (this != &chrs)
{
delete [] ptr;
size = strlen(chrs);
ptr = new char[size + 1];
strcpy(ptr, chrs);
}
return(*this);
}
int main()
{
string str;
str = "Hello World";
cout << str << endl;
return(0);
}
El aprendiz del Hacker:
#!/usr/local/bin/perl
$msg="Hello, world.\n";
if ($#ARGV = 0) {
while(defined($arg=shift(@ARGV))) {
$outfilename = $arg;
open(FILE, "" . $outfilename) || die "Can't write $arg: $!\n"; print
(FILE $msg);
close(FILE) || die "Can't close $arg: $!\n";
}
} else {
print ($msg);
}
El Hacker con algo de experiencia:
#include
main(){exit(printf(S) == strlen(S) ? 0 : 1);}
Hacker maduro:
% cc -o a.out ~/src/misc/hw/hw.c
% a.out
Hacker "Gurú":
% cat
Hello, world.
^D
El Nuevo Ejecutivo:
10 PRINT "HELLO WORLD"
20 END
El Manager de nivel intermedio:
mail -s "Hello, world." bob@b12
Bob, puedes escribirme un programa que diga "Hello, world."?
Lo necesito para mañana.
^D
El manager de nivel superior:
% zmail jim
Necesito un programa "Hello, world." para esta tarde.
El Presidente de la Compañía:
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% maldicion!
!: Event unrecognized
% logout
Por: Linoge | Humor Informático | Comentarios (0) | Referencias (0)