168882006-04-05 19:45:30
The Evolution of a Programmer

(1)High School Student

10 PRINT"HELLO WORLD"
20 END

(2)College Student

program hello(input,output)
begin
writeln("Hello World")
end.

(3)New professional

# include...
void main(void)
{
char*message[]={"Hello","World"};
int i;
for(i=0;i<2;++i)
print("%s",message[i]);
}

(4)Seasoned professional

#include...
class string
{
private:
int size;
char*ptr;
public:
string():size(0),ptr(new char('V0')){}
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< }
string &string::operator=(constchrs*)
{
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<>endl;
return(0);
}

(5)New Manager

10 PRINT "HELLO WORLD"
20 END
Middle Manager
mail -s"Hello,world."bob@b12
Bob,could you please write me a program that prints"Hello,world."?
I need it by tomorrow.
^D

(6)Senior Manager

%zmail jim
I need a "Hello,world."program by this afternoon.

(7)Chief Managerletter
%letter
%letter:Command nout found
%mail
To:^X^F^C
%help mail
help:command not found.
%damn!
!:Event unrecognized
%logout