冰芹的 Notes

c++规范

创建于 2026-04-18T12:55:20

#include <iostream>

int main()
{
std::cout << "Hello, World!" << std::endl;
}

[!warning]- 注意
- 不要用万能头(减慢编译时间、函数名重叠、造成报错)
- 不要用using namespace std;
- 主程序不需要return 0;结尾

Reference : https://www.bilibili.com/video/BV1WKxgzJEpv/