7xGit / 7xGit/7xGit_Task2

Improve Input Validation

未关闭 适合新手
#1 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
documentation help wanted
主要语言
C++
星标
1
派生
5
PR 合并指标
30 天内没有已合并 PR

描述

The input validation checks if the input is valid, but it doesn't handle non-integer inputs gracefully. Improve the input validation logic to ensure it properly handles invalid input without crashing the program.

Acceptance Criteria:

The program should clear the input buffer and prompt the user again if the input is not a valid integer within the specified range.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Look for the input validation logic in the codebase, likely in a main function or a specific module handling user input. The task is to modify this logic to clear the input buffer and re-prompt on invalid integer input. Test by running the program and providing non-integer inputs to ensure it handles them gracefully without crashing.

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
cli
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
70/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。