Hello world!
心情很好,发波福利题目:用不同语言编写Hello world!(禁止搜索)
好吧,我只会这些
**** Hidden Message *****
本帖最后由 永恒的蓝色梦想 于 2020-5-2 17:27 编辑
C#include<stdio.h>
int main() {
puts("Hello world!");
return 0;
}C++#include<iostream>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}Python3from sys import stdout
stdout.write("Hello world!\n")Python2from sys import stdout
stdout.write("Hello world!\n")GoLangpackage main
import "fmt"
func main() {
fmt.Println("Hello, World!\n")
}Kotlinfun main() {
println("Hello World")
}Javapublic class HelloWorld {
public static void main(String []args) {
System.out.println("Hello World");
}
}Rubyputs "Hello World!";Perlprint "Hello, World!\n";rustfn main() {
println!("Hello World!");
}Luaprint("Hello World!")C#using System;
namespace program {
class main {
static void Main(string[] args) {
Console.WriteLine("Hello World!");
}
}
} 这个...好像忘了H5... Hello. 发表于 2020-5-2 11:09
这个...好像忘了H5...
炫? wp231957 发表于 2020-5-2 11:20
炫?
.....{:10_266:} Hello. 发表于 2020-5-2 11:21
.....
c加加,c井,vbvfp pascal aspasm 本帖最后由 隔壁繁星吖 于 2020-5-2 11:36 编辑
Erlang
c(hello)
Scala
println("Hello World")
HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
PHP
<?php
namespace Home\Controller;
use Think\Controller;
class Demo1Controller extends Controller {
public function index(){
echo 'hello world';
}
}
TypeScript
function sayHello(person: string) {
return 'Hello, ' + person;
}
let user = 'Xcat Liu';
console.log(sayHello(user));
C:
#include <stdio.h>
int main(void)
{
printf("Hello, World!\n");
return 0;
}
SQL
CREATE TABLE message (text char(15));
INSERT INTO message (text) VALUES ('Hello, World!');
SELECT text FROM message;
DROP TABLE message;
Python
print("Hello, World!")
Ruby
puts 'Hello, World!'
Java
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello, World!");
}
}
JS
document.write('Hello, World!');
Go
package main
import "fmt"
func main()
{
fmt.Println("Hello, World!")
}
不知道有没有错 隔壁繁星吖 发表于 2020-5-2 11:24
Erlang
可以可以{:10_256:} 就会py和C/C++{:10_266:}我太渣渣了
print("Hello World!")
printf("Hello World!");
cout <<"Hello World"<<endl; 老八秘制 发表于 2020-5-2 11:26
就会py和C/C++我太渣渣了
print("Hello World!")
你把C写全啊{:10_266:} Hello. 发表于 2020-5-2 11:27
你把C写全啊
#include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
} 老八秘制 发表于 2020-5-2 11:28
还有C++的:
#include<iostream>
using namespace std;
int main()
{
cout << "hello world!"<< endl;
return 0;
} 老八秘制 发表于 2020-5-2 11:29
还有C++的:
你都学啦,我表示C++像天书 Hello. 发表于 2020-5-2 11:32
你都学啦,我表示C++像天书
没学完呢 好sao 本帖最后由 liuzhengyuan 于 2020-5-2 11:58 编辑
我会的不多我用 scratch
(来玩玩)
想起了 学 Java 时候。。。 {:5_90:} 本帖最后由 xiaosi4081 于 2020-5-2 17:32 编辑
html:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<pre>Hello World</pre>
</body>
</html>
c:
#include<stdio.h>
int main(void)
{
printf("Hello World");
return 0;
}
c++:
#include<iostream>
int main(void)
{
std::cout<< "Hello World"<<endl;
return 0;
}
python:
print("Hello World")
java:
public class HelloWorld {
public static void main(String[] args){
System.out.println("Hello World!");
}
}
js:
document.write('Hello, World!');
pascal:
program hello
begin
writeln('Hello, World!');
end.
vb:
Private Sub Form_Load()
MsgBox ("Hello World")
End Sub
go:
package main
import "fmt"
func main()
{
fmt.Println("Hello, World!")
}
vfp:
wait window "hello world"
?"hello world"
=messagebox("hello world",0+0, 'Tips')
myform=CREATEOBJECT('form')
myform.caption="hello word"
myform.show()
READ events
Ruby:
puts 'Hello, World!'
SQL:
CREATE TABLE message (text char(15));
INSERT INTO message (text) VALUES ('Hello, World!');
SELECT text FROM message;
DROP TABLE message;
asp:
<% response.write("Hello World")%>
xiaosi4081 发表于 2020-5-2 15:17
html:
c:
C++ 写的明显有问题,endl 写成了 end1,还没加 std::