From 48130b5d8fff99dcc42b5df87fa05a74c110a84c Mon Sep 17 00:00:00 2001 From: simeng Date: Mon, 22 Sep 2025 09:23:42 -0400 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E4=BA=8E=20C++=20=E7=9A=84=E5=88=9D?= =?UTF-8?q?=E6=AD=A5=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/navbar.ts | 4 +++ docs/.vuepress/notes.ts | 20 +++++++++--- docs/notes/programming/c++/README.md | 49 ++++++++++++++++++++++++++++ docs/notes/programming/c++/basis.md | 5 +++ 4 files changed, 73 insertions(+), 5 deletions(-) create mode 100644 docs/notes/programming/c++/README.md create mode 100644 docs/notes/programming/c++/basis.md diff --git a/docs/.vuepress/navbar.ts b/docs/.vuepress/navbar.ts index 881524c..340c2f4 100644 --- a/docs/.vuepress/navbar.ts +++ b/docs/.vuepress/navbar.ts @@ -16,6 +16,10 @@ export default defineNavbarConfig([ text: 'LeetCode', link: '/programming/leetcode/', }, + { + text: 'C++', + link: '/programming/cplusplus/', + }, ], }, { diff --git a/docs/.vuepress/notes.ts b/docs/.vuepress/notes.ts index b5fda73..47b6d13 100644 --- a/docs/.vuepress/notes.ts +++ b/docs/.vuepress/notes.ts @@ -3,9 +3,9 @@ import { defineNoteConfig, defineNotesConfig } from 'vuepress-theme-plume' /** * 配置编程笔记 */ -const programming = defineNoteConfig({ +const LeetCode = defineNoteConfig({ dir: 'programming', - link: '/programming/', + link: '/programming/leetcode/', sidebar: [ { text: "LeetCode 指南", link: "/programming/leetcode/" }, { @@ -13,15 +13,25 @@ const programming = defineNoteConfig({ { text: "LeetCode 入门题单~(≧∇≦)ノ", link: "/programming/leetcode/question_sheet/beginner/" } ] } - ] }) - +const cPlusPlus = defineNoteConfig({ + dir: 'programming', + link: '/programming/cplusplus/', + sidebar: [ + { text: "C++ 学习笔记", link: "/programming/cplusplus/" }, + { + text: "基础配置与开发工具", prefix: "/basis", items: [ + { text: "C++ 环境配置", link: "/programming/cplusplus/basis/" } + ] + } + ] +}) /** * 导出所有的 note */ export default defineNotesConfig({ dir: 'notes', link: '/', - notes: [programming], + notes: [LeetCode, cPlusPlus], }) diff --git a/docs/notes/programming/c++/README.md b/docs/notes/programming/c++/README.md new file mode 100644 index 0000000..cecfc63 --- /dev/null +++ b/docs/notes/programming/c++/README.md @@ -0,0 +1,49 @@ +--- +title: C++ 学习笔记 +description: 记录C++编程语言的学习心得和基础知识 +createTime: 2025/09/22 09:00:00 +permalink: /programming/cplusplus/ +--- + +# C++ 学习笔记 + +这里是我在学习C++编程语言过程中记录的学习心得、基础知识和实战经验。通过整理这些笔记,希望能够帮助自己和他人更好地掌握C++这门强大的编程语言。 + +## 学习路径 + +C++是一门复杂而强大的编程语言,学习路径建议如下: + +1. **基础语法** - 掌握C++的基本语法和编程概念 +2. **面向对象编程** - 学习C++的类、继承、多态等OOP特性 +3. **STL标准库** - 熟悉常用的容器和算法 +4. **高级特性** - 模板、异常处理、智能指针等 +5. **实战项目** - 通过实际项目巩固所学知识 + +## 笔记分类 + +### 基础语法 + +- 数据类型 +- 运算符和表达式 +- 控制流语句 +- 函数 + +### 面向对象编程 + +- 类和对象 +- 继承与多态 +- 封装与抽象 +- 构造函数与析构函数 + +### STL标准库 + +- 容器(vector, list, map等) +- 迭代器 +- 算法 +- 函数对象 + +## 学习资源推荐 + +- [C++ Primer Plus:中文版(第六版)](https://101su.ru/book/5442395/430bc1/c-primer-plus%E4%B8%AD%E6%96%87%E7%89%88%E7%AC%AC%E5%85%AD%E7%89%88.html) - 很好的C++入门教材 + +开始你的C++学习之旅吧!坚持学习,你会发现C++的魅力所在! diff --git a/docs/notes/programming/c++/basis.md b/docs/notes/programming/c++/basis.md new file mode 100644 index 0000000..3be10a7 --- /dev/null +++ b/docs/notes/programming/c++/basis.md @@ -0,0 +1,5 @@ +--- +title: basis +createTime: 2025/09/22 09:06:00 +permalink: /programming/cplusplus/basis/ +---