classroom-ufersa / classroom-ufersa/QuickSortEmployee

5. Sugestão de Melhoria

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Notei que foi utilizado algumas funções da biblioteca , porém faltou inclui-la em "funcionario.h";

Para tratamento do input para o menu de opções, sugiro uma análise de formato e quantidade de caracteres, para evitar que o sistema realize respostas falhas nos casos de:

- Entrada possuir letras;
- Entrada possuir mais de um caracter;

Para isso, sugiro modificar a variável lida de "int opcao" para "char opcao[3]"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting funcionario.h and the menu input handling, including the existing use of ctype.h. Trace how opcao is read and handled, then verify that letter input and entries longer than one character are rejected or handled safely. Done means those inputs no longer produce failed menu responses and the header includes the required library.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.