SHA256
101 lines
3.0 KiB
YAML
101 lines
3.0 KiB
YAML
name: 编程作业问题
|
|
about: 作业中遇到的编译错误、运行时错误、逻辑问题等
|
|
title: "[作业] "
|
|
labels:
|
|
- 编程作业
|
|
body:
|
|
- type: markdown
|
|
attributes:
|
|
value: |
|
|
## 提问须知
|
|
|
|
- **请描述你的思路和卡点**, 而不是直接贴完整代码要求别人帮你写
|
|
- 只贴出**与问题相关的代码片段**, 不要贴整个文件
|
|
- 如果有编译错误或运行时错误, 请附上完整的错误信息
|
|
- 先尝试自己调试(加 `cout` 输出中间变量、使用 VS 调试工具等), 并说明你尝试了什么
|
|
|
|
- type: input
|
|
id: homework-id
|
|
attributes:
|
|
label: 作业编号
|
|
description: 作业编号及题目(如适用)
|
|
placeholder: "例如: 3-b3-1"
|
|
validations:
|
|
required: true
|
|
|
|
- type: dropdown
|
|
id: problem-type
|
|
attributes:
|
|
label: 问题类型
|
|
description: 选择最接近的问题类型
|
|
options:
|
|
- 编译错误
|
|
- 运行时错误(崩溃/段错误)
|
|
- 逻辑错误(输出不符合预期)
|
|
- 思路不清晰(不知道怎么下手)
|
|
- 其他
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: description
|
|
attributes:
|
|
label: 问题描述
|
|
description: 简要描述你遇到的问题
|
|
placeholder: |
|
|
例如: 我的排序函数在处理包含重复元素的数组时输出结果不正确……
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: code
|
|
attributes:
|
|
label: 相关代码
|
|
description: 贴出与问题相关的代码片段(不要贴完整作业代码)
|
|
render: cpp
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: error-output
|
|
attributes:
|
|
label: 错误信息 / 实际输出
|
|
description: 编译器报错信息、程序崩溃信息或实际输出结果(选填)
|
|
render: shell
|
|
validations:
|
|
required: false
|
|
|
|
- type: textarea
|
|
id: expected
|
|
attributes:
|
|
label: 期望行为
|
|
description: 描述你期望程序的正确行为或输出
|
|
placeholder: |
|
|
例如: 输入 [3, 1, 2, 1], 期望输出 [1, 1, 2, 3], 但实际输出 [1, 2, 3, 1]……
|
|
validations:
|
|
required: true
|
|
|
|
- type: textarea
|
|
id: debugging-attempts
|
|
attributes:
|
|
label: 已尝试的调试方法
|
|
description: 你已经尝试了哪些方法来定位问题?这一步很重要——调试能力是编程的核心技能之一。
|
|
placeholder: |
|
|
例如:
|
|
- 在循环中加了 cout 输出每轮交换后的数组内容
|
|
- 检查了数组下标, 发现第 3 轮循环时 i 的值超出了范围
|
|
- 用 VS 的断点调试逐步执行, 发现……
|
|
validations:
|
|
required: true
|
|
|
|
- type: checkboxes
|
|
id: confirmations
|
|
attributes:
|
|
label: 提交确认
|
|
description: 请确认以下事项
|
|
options:
|
|
- label: 我已在 Issue 列表中搜索过, 确认没有重复的问题
|
|
required: true
|
|
- label: 我贴出的是与问题相关的代码片段, 而非完整作业代码
|
|
required: true
|