代码示例:0.2.1 Windows:MinGW + VS Code 环境
全部示例均标注编译命令、适用环境与实测状态;完整验证记录见《03.5-代码编译运行验证记录》。
examples/verify-commands.txt · 环境验证命令清单(PowerShell / CMD)
# 0.2.1 环境验证命令清单(逐行执行;版本号随安装时间不同,能输出信息即就绪) # 1. 检查编译器 gcc --version g++ --version # 2. 检查 MinGW 是否在 PATH 中(Windows 命令) where gcc # 3. 检查 VS Code 及命令行入口 code --version # 4. 若 code 命令不存在:在 VS Code 中按 Ctrl+Shift+P 执行 "Shell Command: Install 'code' command in PATH"