c++ AI实战手册-c++ 20(1)

发布时间 2023-11-15 23:48:03作者: 水宝石

hello,world

import <iostream>;


using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}

g++ -c -fmodules-ts -x c++-system-header -std=c++20 iostream
# g++ -fmodules-ts -std=c++20 hello.cpp -o hello

# ./test
Hello world!