.dsy:it. ~ nonno's journal ~ Evoluzione di un programmatore |
|
|
» |
1976 - Scuole superiori
code:
10 PRINT "HELLO WORLD"
20 END
1980 - Primo anno
code:
program Hello(input, output);
begin
writeln ('Hello world');
end
1985 - Quinto anno
code:
(defun hello
(print
(cons 'HELLO (list 'WORLD))))
1987 - Novello professionista
code:
#include <stdio.h>
main (argc,argv)
int argc;
char **argv; {
printf ("Hello World!\n");
}
1994 - Professionista affermato
code:
#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;
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();
}
2001 - Manager
[I]Rossi, mi serve un programma che scriva "Hello World!"
|
|
mood:
alt.humor.best-of-usenet | now playing: Kunnian Kentät - Dingo - (c) Finnlevy 1995 |
Commento di CLod |
08-10-2004 15:28 |
|
» |
:asd: |
|
Commento di LazerPhEa |
08-10-2004 15:28 |
|
» |
Ehi... ma mancano i "\" davanti alle "n" di newline!! :asd: |
|
Commento di nonno |
08-10-2004 15:28 |
|
» |
li ho messi. quello che non riesco a fare è togliere il tag [i] all'inizio dell'ultima frase. Mi sa che c'è un baco in vBulletin |
|
Commento di LazerPhEa |
08-10-2004 15:28 |
|
» |
Mmm... :? Mistero! :) |
|
Commento di Alf |
08-10-2004 15:28 |
|
» |
Io voglio fare il manager ... :sad: |
|
|
|
|