어느책(!)이든 배우는 "Hello, World"..
각기 상황별 비교버전입니다.
*대학 신입생
program Hello(input, output)
begin
writeln('Hello World')
end.
-------------------------------
*신임 교수
#include
void main(void) {
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("
");
}
-------------------------------
*계약직 전문가
#include
class string {
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('')) {}
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 *);
};
// 생략...
str = "Hello World";
cout << str << endl;
return(0);
}
-------------------------------
*숙련된 해커
% cc -o a.out ~/src/misc/hw/hw.c
-------------------------------
*구루(지존) 해커
% cat
Hello, world.
^D
program Hello(input, output)
begin
writeln('Hello World')
end.
-------------------------------
*신임 교수
#include
void main(void) {
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("
");
}
-------------------------------
*계약직 전문가
#include
class string {
private:
int size;
char *ptr;
public:
string() : size(0), ptr(new char('')) {}
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 *);
};
// 생략...
str = "Hello World";
cout << str << endl;
return(0);
}
-------------------------------
*숙련된 해커
% cc -o a.out ~/src/misc/hw/hw.c
-------------------------------
*구루(지존) 해커
% cat
Hello, world.
^D
ㅋㅋ 한참 웃었습니다.

에서 구독하세요
댓글을 남겨주세요
이건 도스용이지만요.. 흐흐
@echo Hello, world.
ㅋㅋ 예전 생각이 나네요~
중요한게 없군요.
11. 신임 관리자
====================
10 PRINT "HELLO WORLD"
20 END
12. 중견 관리자
====================
mail -s "Hello, world." bob@b12
Bob, could you please write me a program prints "Hello, world."?
I need it by tomorrow.
^D
13. 고위 관리자
====================
% zmail all
I need a "Hello, world." program by this afternoon.
14. 최고 경영자
====================
% letter
letter: Command not found.
% mail
To: ^X ^F ^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized
% logout
푸하하~ 재미있네요~ 최고 경영자 압권이군요~ ㅋㅋ Damn!! ^^!!