超衫!不同人寫的HelloWorld程式

2021-04-12 13:39:15 字數 2825 閱讀 7619

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

void main

(void

) ;

int i

; for(

i = 0;

i <

2; ++i)

printf

("%s"

, message[i

]);

printf

("/n"

); }

seasoned professional

#include

#include

class

string

string

(const

string &s

) :

size(s

.size)

~string

()

friend ostream

&operator

<<(

ostream

&, const

string

&);

string

&operator

=(const

char

*);

}; ostream

&operator

<<(

ostream

&stream

, const

string &s

) string

&string

::operator

=(const

char

*chrs)

return(*

this

); }

int main

()

system administrator

#include

#include

main

()

#!/usr/local/bin/perl

$msg

="hello, world./n"

; if ($

#argv >= 0)

} else 1;

experienced hacker

#include

#include

#define s "hello, world/n"

main

() seasoned hacker

% cc

-o a

.out

~/src

/misc/hw

/hw.c

% a.out

hello

, world

. guru hacker

% cat

hello

, world

. new

manager

(do

you remember

?) 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 senior manager

% zmail jim

i need a

"hello, world."

program by this afternoon

. chief executive

% letter

letter

: command not found

. %

mail

to: ^x ^

f ^c %

help mail

help

: command not found

. %

damn

! !:

event unrecognized

% logout

research scientist

program hello

print *,

'hello world'

end

older research scientist

write (6

, 100

) 100 format

(1h

,11hhello world

) call

exit

end