{"id":25407085,"url":"https://github.com/silwings-git/learning-cxx","last_synced_at":"2025-06-14T06:02:28.727Z","repository":{"id":270929586,"uuid":"911265094","full_name":"Silwings-git/learning-cxx","owner":"Silwings-git","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-04T11:29:20.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T06:02:09.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Silwings-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-02T16:04:51.000Z","updated_at":"2025-01-04T11:29:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"30a81560-8c95-4d16-bb5a-3fea4e9a9bd1","html_url":"https://github.com/Silwings-git/learning-cxx","commit_stats":null,"previous_names":["silwings-git/learning-cxx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Silwings-git/learning-cxx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Silwings-git%2Flearning-cxx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Silwings-git%2Flearning-cxx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Silwings-git%2Flearning-cxx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Silwings-git%2Flearning-cxx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Silwings-git","download_url":"https://codeload.github.com/Silwings-git/learning-cxx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Silwings-git%2Flearning-cxx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768514,"owners_count":22908228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-16T06:20:10.352Z","updated_at":"2025-06-14T06:02:28.722Z","avatar_url":"https://github.com/Silwings-git.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Learning C++\n\n\u003e **NOTICE** 推荐阅读 [C++ 参考手册](https://zh.cppreference.com/w/cpp) 学习 C/C++ 语法和 STL 库。\n\n## 使用指南\n\n1. 安装构建工具 [xmake](https://xmake.io/)\n\n   xmake 是跨平台的 C/C++ 构建系统，具有安装方便，配置简洁的优点。\n\n   安装方式见[中文官方文档](https://xmake.io/#/zh-cn/getting_started?id=%e5%ae%89%e8%a3%85)。\n\n   \u003e **NOTICE** xmake 仅是构建工具，不包括工具链。仍需先安装 C/C++ 工具链（MSVC、GCC 或 Clang）才能开始使用项目。\n\n   \u003e **NOTICE** 有报告称 xmake 在 Windows 上存在定位工具链失败的问题。因此推荐按下列规则选择学习平台：\n   \u003e\n   \u003e 1. 如果已经在默认位置安装 Visual Studio/Ms C++ Build Tools，则推荐原生 Windows 学习本项目；\n   \u003e 2. 如果已经配置好 WSL2，则推荐 WSL2 + GCC/Clang 学习本项目；\n   \u003e 3. 如果未配置过任何工具链，则推荐在默认位置安装 Visual Studio；\n   \u003e 4. 不推荐 MinGW 或 Cygwin，除非足够熟悉这些环境，可以自行完成配置；\n\n   \u003e **NOTICE** 如果仍遇到工具链问题，推荐浏览 [xmake issues](https://github.com/xmake-io/xmake/issues)；\n\n2. 克隆仓库\n\n   ```shell\n   git clone https://github.com/LearningInfiniTensor/learning-cxx.git\n   ```\n\n3. 编译学习系统\n\n   ```shell\n   cd learning-cxx\n   xmake\n   ```\n\n4. 开始学习\n\n   使用\n\n   ```shell\n   xmake run learn \u003cexercise number\u003e\n   ```\n\n   运行指定练习，例如：\n\n   ```shell\n   xmake run learn 0\n   ```\n\n   运行 0 号练习。\n\n5. 总结学习\n\n   使用\n\n   ```shell\n   xmake run summary\n   ```\n\n   总结所有练习通过情况。\n\n## 其他学习资源\n\n- [Microsoft：欢迎回到 C++](https://learn.microsoft.com/zh-cn/cpp/cpp/welcome-back-to-cpp-modern-cpp?view=msvc-170)\n- [C++ Core Guidelines](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines)\n- ~~[Google 风格指南（中文版）](https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/contents.html)~~（deprecated）\n- [360 安全规则集合](https://github.com/Qihoo360/safe-rules)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilwings-git%2Flearning-cxx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilwings-git%2Flearning-cxx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilwings-git%2Flearning-cxx/lists"}