> [!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} [![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 和 Ubuntu(Linux),分别使用 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)
Creative Commons LicenseCredit must be given to the creatorAdaptations must be shared under the same terms ## 贡献 作为由社区开发并维护的仓库,我们欢迎新的、未抄袭的优质贡献。请阅读我们的 [Contribution Guidelines](https://github.com/TheAlgorithms/C-Plus-Plus/blob/master/CONTRIBUTING.md).