diff --git a/.gitea/ISSUE_TEMPLATE/homework-help.yaml b/.gitea/ISSUE_TEMPLATE/homework-help.yaml new file mode 100644 index 0000000..a6eac6c --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/homework-help.yaml @@ -0,0 +1,93 @@ +name: 编程作业问题 +about: 本次作业中遇到的编译错误、运行时错误、逻辑问题等 +title: "[求助] " +labels: + - 编程作业 +body: + - type: markdown + attributes: + value: | + ## 提问须知 + + - **请描述你的思路和卡点**, 而不是直接贴完整代码要求别人帮你写 + - 只贴出**与问题相关的代码片段**, 不要贴整个文件 + - 如果有编译错误或运行时错误, 请附上完整的错误信息 + - 先尝试自己调试(加 `printf` 输出中间变量、使用断点调试等), 并说明你尝试了什么 + - 课程内容答疑、环境配置等**非本次作业特定的问题**请到 **general** 仓库提问 + + - type: dropdown + id: problem-type + attributes: + label: 问题类型 + description: 选择最接近的问题类型 + options: + - 编译错误 + - 运行时错误(崩溃/段错误) + - 逻辑错误(输出不符合预期) + - 思路不清晰(不知道怎么下手) + - 题目理解 + - 其他 + validations: + required: true + + - type: textarea + id: description + attributes: + label: 问题描述 + description: 简要描述你遇到的问题(如涉及多道题目请注明题号) + placeholder: | + 例如: 第 2 题, 我的排序函数在处理包含重复元素的数组时输出结果不正确…… + validations: + required: true + + - type: textarea + id: code + attributes: + label: 相关代码 + description: 贴出与问题相关的代码片段(不要贴完整作业代码) + render: c + 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: | + 例如: + - 在循环中加了 printf 输出每轮交换后的数组内容 + - 检查了数组下标, 发现第 3 轮循环时 i 的值超出了范围 + - 用 VS Code 的断点调试逐步执行, 发现…… + validations: + required: true + + - type: checkboxes + id: confirmations + attributes: + label: 提交确认 + description: 请确认以下事项 + options: + - label: 我已在 Issue 列表中搜索过, 确认没有重复的问题 + required: true + - label: 我贴出的是与问题相关的代码片段, 而非完整作业代码 + required: true