From owner-freebsd-chat@FreeBSD.ORG Thu Jun 1 08:44:11 2006 Return-Path: X-Original-To: freebsd-chat@freebsd.org Delivered-To: freebsd-chat@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D1A316A6EA for ; Thu, 1 Jun 2006 08:44:11 +0000 (UTC) (envelope-from coolzone@io.dk) Received: from dansknet.dk (smtp1.dansknet.dk [85.233.229.242]) by mx1.FreeBSD.org (Postfix) with SMTP id DC4E443D46 for ; Thu, 1 Jun 2006 08:44:09 +0000 (GMT) (envelope-from coolzone@io.dk) Received: (qmail 16116 invoked from network); 1 Jun 2006 09:27:32 -0000 Received: from 85233229154.switch.dansknet.dk (HELO ?85.233.229.154?) (85.233.229.154) by dansknet.dk with SMTP; 1 Jun 2006 09:27:32 -0000 Message-ID: <447EA92E.8070500@io.dk> Date: Thu, 01 Jun 2006 10:45:34 +0200 From: Rico User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: freebsd-chat@freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: A joke X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 08:44:12 -0000 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 main (argc,argv) int argc; char **argv; { printf ("Hello World!\n"); } 216 C++ Seasoned pro ------------ #include 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