프로그래밍을 제일 처음배울때..

어느책(!)이든 배우는 "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


ㅋㅋ 한참 웃었습니다.

트랙백을 보내세요

트랙백 주소 :: http://bklove.info/trackback/23

댓글을 남겨주세요

  1. ranciel 2005/10/16 16:27

    이건 도스용이지만요.. 흐흐
    @echo Hello, world.

  2. mono 2005/10/16 22:09

    중요한게 없군요.

    11. 신임 관리자
    ====================
    10 PRINT &quot;HELLO WORLD&quot;
    20 END


    12. 중견 관리자
    ====================
    mail -s &quot;Hello, world.&quot; bob@b12
    Bob, could you please write me a program prints &quot;Hello, world.&quot;?
    I need it by tomorrow.
    ^D


    13. 고위 관리자
    ====================
    % zmail all
    I need a &quot;Hello, world.&quot; 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

    • BK 2005/10/16 22:31

      푸하하~ 재미있네요~ 최고 경영자 압권이군요~ ㅋㅋ Damn!! ^^!!

비밀글 (Serect)