多语言实现Hello World
Abstract Keywords C/c++ Matlab
Citation Yao Qing-sheng.多语言实现Hello World.FUTURE & CIVILIZATION Natural/Social Philosophy & Infomation Sciences,20191127. https://yaoqs.github.io/20191127/duo-yu-yan-shi-xian-hello-world/
作为所有编程语言的起始阶段,HELLO WORLD占据着无法改变的地位,所有中/英/法/德/美……版本的编程教材中,HELLO WORLD总是作为第一个TEST记录于书本之中,所有的编程第一步就在于此了!经典之中的经典!HELLO WORLD! 这个例程是从Kernighan & Ritchie 合著的《The C Programme Language》开始有的,因为它的简洁,实用,并包含了一个程序所应具有的一切,因此为后来的些类书的作者提供了范例,一直待续到今。 我们刚开始接触计算机语言大多从Hello world 开始,下面是各种语言的Hello world program:
AKA 控制台:
ABC语言的Hello World程序
1 | WHILE (1=1) : |
Ada语言的Hello World程序
1 | with Ada.Text_Io; use Ada.Text_Io; |
AmigaE语言的Hello World程序
1 | PROC main() |
APL语言的Hello World程序
1 | 'Hello World' |
Assembly语言的Hello World程序
1 | Accumulator-only architecture: DEC PDP-8, PAL-III assembler |
DATASEG语言的Hello World程序
1 | MSG DB 'Hello, world!$' |
CODESEG语言的Hello World程序
1 | MOV AX, @data |
AWK语言的Hello World程序
1 | BEGIN { print "Hello, world!" } |
BASIC语言的Hello World程序:
1 | PRINT "HELLO WORLD" |
MS BASIC语言的Hello World程序
1 | (traditional, unstructured) |
TI-BASIC语言的Hello World程序
1 | isp "Hello, world!" |
Structured BASIC语言的Hello World程序
1 | print "Hello, world!" |
BCPL语言的Hello World程序
1 | GET "LIBHDR" |
C语言的Hello World程序
1 |
|
C#语言的Hello World程序
1 | class HelloWorldApp { |
Clean语言的Hello World程序
1 | module hello |
CLIST语言的Hello World程序
1 | PROC 0 |
COBOL语言的Hello World程序
1 | IDENTIFICATION DIVISION. |
Common Lisp语言的Hello World程序
1 | (format t "Hello world!~%") |
Eiffel语言的Hello World程序
1 | class HELLO_WORLD |
Erlang语言的Hello World程序
1 | -module(hello). |
Forth语言的Hello World程序
1 | ." Hello, world!" CR |
Fortran语言的Hello World程序
1 | PROGRAM HELLO |
Haskell语言的Hello World程序
1 | module HelloWorld (main) where |
Iptscrae语言的Hello World程序
1 | ON ENTER { |
Java语言的Hello World程序
1 | public class Example{ |
Logo语言的Hello World程序
1 | print [hello world!] |
Lua语言的Hello World程序
1 | print "Hello, world!" |
MIXAL语言的Hello World程序
1 | TERM EQU 19 the MIX console device number |
MSDOS batch语言的Hello World程序
1 | @echo off |
OCaml语言的Hello World程序
1 | let _ = |
Pascal语言的Hello World程序
1 | program hello_world; |
Perl语言的Hello World程序
1 | print "Hello, world!\n"; |
PHP语言的Hello World程序
1 |
|
Pike语言的Hello World程序
1 | #!/usr/local/bin/pike |
PL/I语言的Hello World程序
1 | Test: procedure options(main); |
Python语言的Hello World程序
1 | print "Hello, world!" |
REXX语言的Hello World程序
1 | also NetRexx and Object REXX |
Ruby语言的Hello World程序
1 | print "Hello, world!\n" |
Sather语言的Hello World程序
1 | class HELLO_WORLD is |
Scheme语言的Hello World程序
1 | (display "Hello, world!") |
sed语言的Hello World程序
1 | (requires at least one line of input) |
Self语言的Hello World程序
1 | 'Hello, World!' uppercase print. |
Smalltalk语言的Hello World程序
1 | Transcript show: 'Hello, world!' |
SML语言的Hello World程序
1 | print "Hello, world!\n"; |
SNOBOL语言的Hello World程序
1 | OUTPUT = "Hello, world!" |
SQL语言的Hello World程序
1 | create table MESSAGE (TEXT char(15)); |
Tcl语言的Hello World程序
1 | puts "Hello, world!" |
Turing语言的Hello World程序
1 | put "Hello, world!" |
UNIX-style shell语言的Hello World程序
1 | echo 'Hello, world!' |
Romanian pseudocode语言的Hello World程序
1 | (UBB Cluj-Napoca)Algoritmul Salut este: |
传统图形界面应用开发工具:
1 | C++ bindings for GTK graphics toolkit |
Java语言的Hello World程序
1 | import java.awt.*; |
public语言的Hello World程序
1 | HelloWorld(); |
QApplication app语言的Hello World程序
1 | (argc, argv); |
Visual Basic语言的Hello World程序 1.信息框
1 | MsgBox "Hello, world!" |
2.输出到窗体
1 | Print "Hello, world!" |
Windows API (in C)语言的Hello World程序
1 |
|
基于web图形用户界面:
Java applet语言的Hello World程序
1 | Java applets work in conjunction with HTML files. |
JavaScript, aka ECMAScript语言的Hello World程序
1 | JavaScript is a scripting language used in HTML files. To demo this program Cut and Paste the following code into any HTML file. |
文档格式:
ASCII语言的Hello World程序
1 | The following sequence of characters, expressed in hexadecimal notation (with carriage return and newline characters at end of sequence): |
HTML语言的Hello World程序
1 | <HTML> |
PostScript语言的Hello World程序
1 | /font /Courier findfont 24 scalefont |
TeX语言的Hello World程序
1 | \font\HW=cmr10 scaled 3000 |
LaTeX语言的Hello World程序
1 | \documentclass{article} |
批处理语言的Hello World程序
1 | echo Hello World! |
易语言的Hello World程序
1 | .子程序 __启动窗口_创建完毕 |
Address:Department of Natural/Social Philosophy & Infomation Sciences, CHINA
Biography...
转载或引用本文时请遵守许可协议,注明出处、不得用于商业用途!
Like this article? Support the author with