Hello world!(你好,世界!)

Tags: helloworld 

703

"Hello, World" program is a computer screen output "Hello, World!" (Meaning"Hello, world! ") Computer program for this line string. In General, each type ofcomputer programming language that is the most basic, most simple programs, alsothe first programs are typically written by beginners. It can also be used to determinethe language compilers, programming environments, as well as runtime environmenthas been installed properly.
 
Will output the string "Hello World" as first demonstration programs, has nowbecome a traditional learning a programming language. The programbulaien·kelinhan (Brian Kernighan) and Dennis Ritchie (Dennis m. Ritchie), thecomputer programming tutorial on the c programming language (The ProgrammingLanguage c) widely used within, but this book is a "Hello World" origin, is amisconception.
 
"Hello World" demonstration program first appeared in 1972, written by a memberof the Bell Labs bulaien·kelinhan internal technical documentation of theIntroduction to the Language b. Near the same in 1974 and written by the author ofthe Programming in C:A Tutorial, also used this example and expanded rewrite of clanguage programming in the present document also preserves the demonstrationprogram.
 

But attention is required, the standard Hello World program is "hello, world ", there is no exclamation point, all lower case, a comma followed by a space, and popularwriting is not the same.

<?php
        echo "hello, world\n";
?>
hello, word
“Hello, World”程序指的是指在计算机屏幕上输出“Hello, World!”(意为“你好,世界!”)这行字符串的计算机程序。一般来说,这是每一种计算机编程语言中最基本、最简单的程序,亦通常是初学者所编写的第一个程序。它还可以用来确定该语言的编译器、程序开发环境,以及运行环境是否已经安装妥当。


将输出字符串“Hello World”作为第一个示范程序,现在已经成为编程语言学习的传统。该程序因布莱恩·柯林汉(Brian Kernighan)和丹尼斯·里奇(Dennis M. Ritchie)所著的计算机程序设计教程《C程序设计语言》(The C Programming Language)中使用而广泛流传;但对于这本书是“Hello World”的起源,是一个错误认知。


“Hello World”示范程序最早出现于1972年,由贝尔实验室成员布莱恩·柯林汉撰写的内部技术文件《Introduction to the Language B》之中。不久同作者于1974年所撰写的《Programming in C: A Tutorial》,也延用这个示例;而以本文件扩编改写的《C语言程序设计》也保留了这个示范程序。


但是需要注意的是,Hello World的标准程序是“hello, world”,没有感叹号,全部小写,逗号后面有空格,与现在流行的写法并不一致。

  日志固定链接: http://121.40.50.203/?post/g4rsfc