https://github.com/silwings-git/learning-cxx
https://github.com/silwings-git/learning-cxx
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/silwings-git/learning-cxx
- Owner: Silwings-git
- License: mit
- Created: 2025-01-02T16:04:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-04T11:29:20.000Z (over 1 year ago)
- Last Synced: 2025-06-14T06:02:09.141Z (about 1 year ago)
- Language: C++
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Learning C++
> **NOTICE** 推荐阅读 [C++ 参考手册](https://zh.cppreference.com/w/cpp) 学习 C/C++ 语法和 STL 库。
## 使用指南
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/LearningInfiniTensor/learning-cxx.git
```
3. 编译学习系统
```shell
cd learning-cxx
xmake
```
4. 开始学习
使用
```shell
xmake run learn
```
运行指定练习,例如:
```shell
xmake run learn 0
```
运行 0 号练习。
5. 总结学习
使用
```shell
xmake run summary
```
总结所有练习通过情况。
## 其他学习资源
- [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)~~(deprecated)
- [360 安全规则集合](https://github.com/Qihoo360/safe-rules)