How to restrict user input in c++ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to restrict user input in c++

Like write a program which allow user to "only" enter any 4 -number from the keyboard

21st Feb 2021, 9:26 AM
Daniel jwenge
Daniel jwenge - avatar
1 Resposta
+ 2
Just by performing a simple check right after the user have input to see if the user entered correct input or not.
21st Feb 2021, 9:57 AM
Arsenic
Arsenic - avatar