打开主菜单
首页
随机
登录
设置
关于Akarin
免责声明
Akarin
搜索
更改
←上一编辑
Hello world
(查看源代码)
2020年7月19日 (日) 13:26的版本
添加552字节
、
2020年7月19日 (日) 13:26
小
无编辑摘要
第1行:
第1行:
'''Hello world'''为一梗,于程序员中流传,源于《Introduction to the Language B》一书示例程序之首,后用于入门编程语言的第一个程序。
'''Hello world'''为一梗,于程序员中流传,源于《Introduction to the Language B》一书示例程序之首,后用于入门编程语言的第一个程序。
+
+
==各类代码实现==
+
+
===ABAP===
+
<source lang="abap">
+
REPORT Z_AKARIN_HELLO.
+
WRITE 'Hello world!'.
+
</source>
+
===C===
+
<source lang="c">
+
#include<stdio.h>
+
int main(){
+
printf("Hello world!");
+
}
+
</source>
+
===C++===
+
<source lang="cpp">
+
#include<iostream>
+
int main(){
+
std::cout<<"Hello world!";
+
}
+
</source>
+
===Python===
+
<source lang="py">
+
print("Hello world!")
+
</source>
+
<source lang="py">
+
import __hello__
+
</source>
+
===Lua===
+
{{Seealso|Module:Example}}
+
===Wenyan===
+
<source>
+
吾有一言。曰「「問天地好在。」」。書之。
+
</source>
Shinonome Akebono
界面管理员
、
管理员
、
上传向导活动编辑者
849
个编辑