Hello World !

C++17

1
2
3
4
5
6
7
#include <iostream>
using namesapce std;
int main()
{
cout << "hello world" << endl;
return 0;
}

C++20

1
2
3
4
5
6
7
8
9
10
import <iostream>;
import <format>;
import <string>;
using namespace std;
int main()
{
string world {"world"};
cout << format("hello {}",world) << endl;
return 0;
}

C++23

1
2
3
4
5
6
7
import std;
using namespace std;
int main()
{
print("hello world");
return 0;
}

从C++17到C++23,
计算机的旅途正式开始!