7xGit / 7xGit/7xGit_Task2

Improve Input Validation

Đang mở Phù hợp với người mới
#1 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
documentation help wanted
Ngôn ngữ chính
C++
Star
1
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
70/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.