7xGit / 7xGit/7xGit_Task2

Improve Input Validation

Open Beginner friendly
#1 0 comments 0 reactions 0 assignees View on GitHub
documentation help wanted
Dominant language
C++
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.