Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jun 2006 10:45:34 +0200
From:      Rico <coolzone@io.dk>
To:        freebsd-chat@freebsd.org
Subject:   A joke
Message-ID:  <447EA92E.8070500@io.dk>

next in thread | raw e-mail | index | archive | help
High school/Junior 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 (list 'HELLO 'WORLD)))

New professional
----------------
#include <stdio.h>
main (argc,argv)
int argc;
char **argv; {
printf ("Hello World!\n");
}
216 C++

Seasoned pro
------------
#include <stream.h>
const int MAXLEN = 80;
class outstring;
class outstring {
private:
int size;
char str[MAXLEN];
public:
outstring() { size=0; }
~outstring() {size=0;}
void print();
void assign(char *chrs);
};
void outstring::print() {
int i;
for (i=0 ; i< size ; i++)
cout << str[i];
cout << "\n";
}
void outstring::assign(char *chrs) {
int i;
for (i=0; chrs[i] != '\0';i++)
str[i] = chrs[i];
size=i;
}
main (int argc, char **argv) {
outstring string;
string.assign("Hello World!");
string.print();
}

Manager: “George, I need a program to output the string ‘Hello World!’”

Hilarious!

Best and kind regards,
Rico




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447EA92E.8070500>