Hello World ,中文意思:你好,世界。世界上的第一个程序就是Hello World,由Brian Kernighan创作。
“Hello, world”程序是指在计算机屏幕上输出“Hello,world”这行字符串的计算机程序,“hello, world”的中文意思是“世界,你好”。这个例程在Brian Kernighan 和Dennis M. Ritchie合著的《The C Programme Language》使用而广泛流行。因为它的简洁,实用,并包含了一个该版本的C程序首次出现在1974年Brian Kernighan所撰写的《Programming in C: A Tutorial》
printf
(
"hello,?world\n"
);
实际上将“Hello”和“World”一起使用的程序最早出现于1972年,出现在贝尔实验室成员Brian Kernighan撰写的内部技术文件《Introduction to the Language B》之中:
main(){
????
extern
?a,b,c;
????
putchar
(a);
putchar
(b);
putchar
(c);
putchar
(
'!*n'
);
}
a
'hell'
;
b
'o,w'
;
c
'orld'
;
最初的”hello, world”打印内容有个标准,即全小写,有逗号,逗号后空一格,且无感叹号。不过沿用至今,完全遵循传统标准形式的反而很少出现。
http://hao.360.cn/?src=lm&ls=n383ad7da95