Hi!, i've been researching a bit about this topic but it's been a little hard for me to learn how to use the try catch and throw.
I want to validate a value entered by a user, in this case his/her ID, and i want to validate if the values entered are all numbers
cout<<"Enter your ID"<<endl;
So if the user tipes a letter it would say:
cout<<"invalid ID please try again"<<endl;
I just want a simple example so i can learn how to use it, thanks in advance
Last edited on