环境

1
2
3
4
5
6
7
8
9
10
11
12
CLion 2020.3
Build #CL-203.5981.166, built on December 2, 2020
Licensed to wei lining
Subscription is active until April 11, 2021
For educational use only.
Runtime version: 11.0.9+11-b1145.21 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 1987M
Cores: 4
Registry: run.processes.with.pty=TRUE

Hello World

new project -> 选择C++ 14 executable(如果选择了library, 将.c文件内的函数名改为main .)

填写项目存放路径

1
2
3
4
5
6
7
#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<"hello"<<endl;
return 0;
}