KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
training-cpp
★ 63
Open GitHub ↗
希加加训练营对外练习题
Download README (.md)
Explore Similar Repositories
compose-remember-setting
:
Compose Multiplatform library for remembering state persistently (based on Multiplatform Settings)
FreeTumor
:
[Nature Communications 2025] Large-Scale Generative Tumor Synthesis in Computed Tomography Images for Improving Tumor Recognition
tldraw-dom-components
:
Unlock the full React ecosystem on native
CCViM
:
Merging Context Clustering with Visual State Space Models for Medical Image Segmentation
time-geekbang-org-rag
:
the source code of RAG course at https://time.geekbang.org/column/intro/100817901
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
training-cpp
?
Download (.md)
# C++ 练习题 > **NOTICE** 推荐阅读 [C++ 参考手册](https://zh.cppreference.com/w/cpp) 学习 C/C++ 语法和 STL 库。 > **NOTICE** 本仓库的所有练习均使用 C++17 标准编写,因此请确保您的编译器支持 C++17 标准。 > **NOTICE** 本仓库的所有练习均使用 xmake 构建,因此请确保您的 Linux 系统已安装 xmake。 > **NOTICE** 66题之后是选做,默认关闭,如果需要,请打开enable_optional_exercises选项,详见xmake.lua > **NOTICE** 题目中的部分飞书文档为[希加加训练营](https://lb3fn675fh.feishu.cn/docx/US2ld4BWooRKTLxwedycUCjdnmh)学员专属,仅开放权限给训练营学员。 > **NOTICE** 推荐参加 [希加加训练营](https://lb3fn675fh.feishu.cn/docx/US2ld4BWooRKTLxwedycUCjdnmh),全方位系统提升 C++ 编程能力。 ## 使用指南 1. 安装构建工具 [xmake](https://xmake.io/) xmake 是跨平台的 C/C++ 构建系统,具有安装方便,配置简洁的优点。 安装方式见[中文官方文档](https://xmake.io/#/zh-cn/getting_started?id=%e5%ae%89%e8%a3%85)。 > **NOTICE** xmake 仅是构建工具,不包括工具链。仍需先安装 C/C++ 工具链(MSVC、GCC 或 Clang)才能开始使用项目。 > **NOTICE** 有报告称 xmake 在 Windows 上存在定位工具链失败的问题。因此推荐按下列规则选择学习平台: > > 1. 如果已经在默认位置安装 Visual Studio/Ms C++ Build Tools,则推荐原生 Windows 学习本项目; > 2. 如果已经配置好 WSL2,则推荐 WSL2 + GCC/Clang 学习本项目; > 3. 如果未配置过任何工具链,则推荐在默认位置安装 Visual Studio; > 4. 不推荐 MinGW 或 Cygwin,除非足够熟悉这些环境,可以自行完成配置; > **NOTICE** 如果仍遇到工具链问题,推荐浏览 [xmake issues](https://github.com/xmake-io/xmake/issues); 2. 克隆仓库 ```shell git clone https://github.com/CppTrainingHub/training-cpp.git ``` 3. 编译学习系统 ```shell cd training-cpp xmake ``` 4. 开始学习 使用 ```shell xmake run learn <exercise number> ``` 运行指定练习,例如: ```shell xmake run learn 0 ``` 运行 0 号练习。 5. 总结学习 使用 ```shell xmake run summary ``` 总结所有练习通过情况。 **编译报错是正常的,就是需要你通过解决编译报错中的问题,使之可以通过编译来练习提升能力,66题之后是选做的,默认关闭,打开的话可以看下xmake.lua脚本,看一眼就知道开关在哪里了** ## 其他学习资源 - [Microsoft:欢迎回到 C++](https://learn.microsoft.com/zh-cn/cpp/cpp/welcome-back-to-cpp-modern-cpp?view=msvc-170) - [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines) - [Google 风格指南(中文版)](https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/contents.html) - [360 安全规则集合](https://github.com/Qihoo360/safe-rules) > **致谢** 本仓库的部分练习题内容主要参考自 [LearningInfiniTensor/learning-cxx](https://github.com/LearningInfiniTensor/learning-cxx),并在此基础上进行了习题的补充优化和调整。衷心感谢原作者的辛勤付出!