Files
wehub-resource-sync 18c0895c34
Awesome CI Workflow / Code Formatter (push) Waiting to run
Awesome CI Workflow / Compile checks (macOS-latest) (push) Blocked by required conditions
Awesome CI Workflow / Compile checks (ubuntu-latest) (push) Blocked by required conditions
Awesome CI Workflow / Compile checks (windows-latest) (push) Blocked by required conditions
docs: make Chinese README the default
2026-07-13 10:28:01 +00:00

47 lines
5.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- WEHUB_ZH_README -->
> [!NOTE]
> 本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
> [English](./README.en.md) · [原始项目](https://github.com/TheAlgorithms/C-Plus-Plus) · [上游 README](https://github.com/TheAlgorithms/C-Plus-Plus/blob/HEAD/README.md)
> 原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。
# The Algorithms - C++ # {#mainpage}
<!-- 上述行中的后缀是 doxygen 将本页视为所生成文档站点索引页所必需的 -->
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/TheAlgorithms/C-Plus-Plus)
[![CodeQL CI](https://github.com/TheAlgorithms/C-Plus-Plus/actions/workflows/codeql.yml/badge.svg)](https://github.com/TheAlgorithms/C-Plus-Plus/actions/workflows/codeql.yml)
[![Gitter chat](https://img.shields.io/badge/Chat-Gitter-ff69b4.svg?label=Chat&logo=gitter&style=flat-square)](https://gitter.im/TheAlgorithms)
[![contributions welcome](https://img.shields.io/static/v1.svg?label=Contributions&message=Welcome&color=0059b3&style=flat-square)](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md)
![GitHub repo size](https://img.shields.io/github/repo-size/TheAlgorithms/C-Plus-Plus?color=red&style=flat-square)
[![Doxygen CI](https://github.com/TheAlgorithms/C-Plus-Plus/workflows/Doxygen%20CI/badge.svg)](https://TheAlgorithms.github.io/C-Plus-Plus)
[![Awesome CI](https://github.com/TheAlgorithms/C-Plus-Plus/workflows/Awesome%20CI%20Workflow/badge.svg)](https://github.com/TheAlgorithms/C-Plus-Plus/actions?query=workflow%3A%22Awesome+CI+Workflow%22)
[![Income](https://img.shields.io/liberapay/receives/TheAlgorithms.svg?logo=liberapay)](https://liberapay.com/TheAlgorithms)
[![Discord chat](https://img.shields.io/discord/808045925556682782.svg?logo=discord&colorB=5865F2)](https://the-algorithms.com/discord/)
[![Donate](https://liberapay.com/assets/widgets/donate.svg)](https://liberapay.com/TheAlgorithms/donate)
## 概述
本仓库汇集了多种算法的开源实现,使用 C++ 编写,并采用 [MIT License](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/LICENSE). 许可。这些算法涵盖计算机科学、数学与统计学、数据科学、机器学习、工程等多个主题。实现代码及相关文档旨在为教育工作者和学生提供学习资源。因此,针对同一目标,你可能会发现不止一种实现,它们采用不同的算法策略与优化方式。
## 特性
- 本仓库在最为基础之一的通用编程语言 [C++](https://en.wikipedia.org/wiki/C%2B%2B). 中提供了多种算法的实现。
- 文档完善的源代码配有详细说明,为教育工作者和学生提供宝贵资源。
- 每份源代码都是原子化的,使用 [STL classes](https://en.wikipedia.org/wiki/Standard_Template_Library),编译与运行_无需外部库_。因此可以更深入地研究算法的基本原理。
- 源代码在每次提交时都会针对三大主流操作系统的最新版本进行[编译与测试](https://github.com/TheAlgorithms/C-Plus-Plus/actions?query=workflow%3A%22Awesome+CI+Workflow%22),即 Windows、MacOS 和 UbuntuLinux),分别使用 MSVC 19 2022、AppleClang 15.0.15 和 GNU 13.3.0。
- 严格遵循 [C++17](https://en.wikipedia.org/wiki/C%2B%2B17) 标准,确保代码可移植到嵌入式系统等平台,例如 [ESP32](https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/cplusplus.html#c-language-standard), [ARM Cortex](https://developer.arm.com/documentation/101458/2404/Standards-support/Supported-C-C---standards-in-Arm-C-C---Compiler), 等,几乎无需修改。
- 程序内置自检机制,可确保实现正确、结果可信。
- 模块化实现与开源许可使这些函数能够便捷地用于其他应用。
## 文档
[Online Documentation](https://TheAlgorithms.github.io/C-Plus-Plus) 直接根据仓库源代码生成。文档包含全部资源,包括源代码片段、程序运行说明、程序流程图示,以及必要时的外部资源链接。文档还提供交互式源代码,并附有所用 C++ STL 库函数的文档链接。
点击 [Files menu](https://TheAlgorithms.github.io/C-Plus-Plus/files.html) 可查看所有已记录代码的文件列表。
[Documentation of Algorithms in C++](https://thealgorithms.github.io/C-Plus-Plus) 由 [The Algorithms Contributors](https://github.com/TheAlgorithms/C-Plus-Plus/graphs/contributors) 编写,采用 [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1)<br/>
<a href="https://creativecommons.org/licenses/by-sa/4.0"><img alt="Creative Commons License" style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" /><img alt="Credit must be given to the creator" style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg" /><img alt="Adaptations must be shared under the same terms" style="height:22px!important;margin-left: 3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg" /></a>
## 贡献
作为由社区开发并维护的仓库,我们欢迎新的、未抄袭的优质贡献。请阅读我们的 [Contribution Guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md).