vendredi 27 février 2015

How do I prevent a char input from affecting an int variable


I have a loop that is looking for an int between 1 and 100. If the user enters a letter, the loop just goes crazy. How can I keep chars and ints separate?




Aucun commentaire:

Enregistrer un commentaire