hello world

本文主要介绍各种语言中“hello world”程序的写法。

前置知识:

C语言:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
int main()
{
printf("hello world\n");
return 0;
}
```
### C++
```c++
#include <iostream>
using namespace std;
int main()
{
cout<<"hello world"<<endl;
return 0;
}

Python 3

1
print("hello world")

Pyhton 2

1
print "hello world"

PHP

1
2
3
<?php
echo "hello world"
?>

Java因为代码过长而懒得写。

Author

王钦砚

Posted on

2019-05-24

Licensed under

CC BY-NC-SA 4.0

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×