你好, 世界
--1-- 语言的编写准备 1.1 C语言源文件的编译执行过程 1.2 常见文件的拓展名 1.3 常用的命令行指令 1.4 环境及运行方法 --2--编写代码 2.1练习 --3-- 你好 3.1 你好, 世界 ---------------------------------【写在开头:】
『
“Hello World”示范程序最早出现于1972年,由贝尔实验室成员布莱恩·柯林汉撰写的内部技术文件《"A Tutorial Introduction to the Language B" 》之中。不久,同作者于1974年所撰写的《Programming in C: A Tutorial》,也延用这个示例;而布莱恩·柯林汉和丹尼斯·里奇以本文件扩编改写的《C程序设计语言》也保留了这个示范程序,此后广泛流传。
《"A Tutorial Introduction to the Language B" 》中的”hello, world“示范程序:
hello, woldmain(){ extrn a,b,c; putchar(a); putchar(b); putchar(c); putchar(‘!*n‘); }a ‘hell‘;b ‘o, w‘;c ‘orld‘;
』