Hi I can't seem to get this right I've looked online but I can't find the right page.
I'm trying to make a simple program that takes a number but what if a character is entered. Well so far I get "140" as an answer.
Here's what I mean in pseudo code:
int main()
{
....
try
{
get a number
if (the number is a character) //don't quit get that
{
throw //something?
}
catch(some variable)
{
err<<some varible<<endl;
}
//end
So as you can see I'm puzzeled about this try and catch command. If someone could take the time to explain the concept to me that would be greatly appreciated!!!
thanks...