doc/docs/CPlusPlus-main/01_C++的注释.ipynb
sairate fa9377e4ae docs(book): 添加现代 C++教程及相关代码
- 新增现代 C++ 教程的 Preface 章节,包括英文和中文版本
- 添加 C++ Primer 练习代码
- 新增 Learn C++ 教程的 C++ 开发简介章节
- 添加头文件解析文档
- 更新 mkdocs.yml,包含新教程的目录结构
- 修改项目设置,使用 Python 3.10环境
2025-07-08 09:52:45 +08:00

69 lines
1.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# C++的注释"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 1. 注释"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"① 在代码中的加一些说明和解释,这些说明和解释就叫注释。\n",
"\n",
"② 注释能方便自己和其他程序员阅读代码。\n",
"\n",
"③ C++的注释,有两种格式:\n",
"\n",
"1. 单行注释: // 描述信息 \n",
" - note通常放在一行代码的上方或者一条语句的末尾对该行代码说明。\n",
"2. 多行注释: /* 描述信息 */ \n",
" - note编译器在编译代码时会忽略注释的内容即不会执行。"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.6.3",
"language": "python",
"name": "python3.6.3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": false,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": true
}
},
"nbformat": 4,
"nbformat_minor": 4
}