Day 16: Exceptions - String to Integer

  • + 11 comments

    you can use the standard exception as used above. Else you can also use default exception.

    The only difference is the change in parameters in the catch function

    It would look like:

    catch(...)
    {
        cout<<"Bad String";
    }
    

    Both works!