Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Evolution of a programmer

10 views
Skip to first unread message

Dennis Lou

unread,
Nov 12, 1990, 7:30:05 PM11/12/90
to

The Evolution of a programmer.

(Okay, it's late and I'm not thinking straight, but at least it's original...)

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>
main (argc,argv)
int argc;
char **argv; {
printf ("Hello World!\n");
}

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 a string
"Hello World!" */

--
Edited by Brad Templeton. MAIL your jokes (jokes ONLY) to fu...@looking.ON.CA
Attribute the joke's source if at all possible. A Daemon will auto-reply.

If you don't need a reply, submit to r...@looking.on.ca instead.

0 new messages