编程基础: Difference between revisions
Jump to navigation
Jump to search
Created page with "== 规则 == {| class="wikitable" |'''符号''' |'''名称''' |'''用途''' |- |; |分号 |表明一条语句 |- |{} |花括号 |表明一个语句块 |- | |空格 |用于区分语法单元 |- |// |双斜杠 |注释符 |- |: |举手符 |注释符 |} == VSCode ==" |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
混口饭吃。 | |||
== 规则 == | == 规则 == | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 28: | ||
== VSCode == | == VSCode == | ||
Ctrl Shift P 可编辑某插件对应设置。 | |||
下载 https://github.com/niXman/mingw-builds-binaries/releases/download/15.2.0-rt_v13-rev0/x86_64-15.2.0-release-win32-seh-ucrt-rt_v13-rev0.7z 直接使用里面的 gcc 编译器先用就行了。不用挑软件。 | |||
<pre> | |||
1️⃣ Ctrl + Shift + P | |||
2️⃣ 输入并选择: | |||
Debug: Select and Start Debugging | |||
3️⃣ 选择你的 C/C++ 调试配置 | |||
4️⃣ VS Code 会记住这个选择 | |||
之后: | |||
直接 F5 = 编译 + 调试 C | |||
</pre> | |||
Latest revision as of 10:17, 17 December 2025
混口饭吃。
规则
| 符号 | 名称 | 用途 |
| ; | 分号 | 表明一条语句 |
| {} | 花括号 | 表明一个语句块 |
| 空格 | 用于区分语法单元 | |
| // | 双斜杠 | 注释符 |
| /* */ | 举手符 | 注释符 |
VSCode
Ctrl Shift P 可编辑某插件对应设置。
下载 https://github.com/niXman/mingw-builds-binaries/releases/download/15.2.0-rt_v13-rev0/x86_64-15.2.0-release-win32-seh-ucrt-rt_v13-rev0.7z 直接使用里面的 gcc 编译器先用就行了。不用挑软件。
1️⃣ Ctrl + Shift + P 2️⃣ 输入并选择: Debug: Select and Start Debugging 3️⃣ 选择你的 C/C++ 调试配置 4️⃣ VS Code 会记住这个选择 之后: 直接 F5 = 编译 + 调试 C