+ 1

Create a. Program that recognizes letters as errors(or that restricts letters) when input by the user

The program shout only accept digits and restrict any letter input...using c++

20th Dec 2021, 11:42 AM
CodeWithDENIS.K👩‍💻
CodeWithDENIS.K👩‍💻 - avatar
2 Antworten
+ 1
You could use a while loop to get input... Here's an example: https://www.delftstack.com/howto/cpp/cpp-input-validation/
20th Dec 2021, 12:56 PM
Lisa
Lisa - avatar