I want this code to call generic catch block whenever any special character(eg. !,@,#,$,%,&,*, etc) is entered in numerator or denominator. So what code should I add to this.
Any help would be appreciated. Thanks.



Code:
#include <iostream>

using namespace std;

int main()
{
    try                                                // generic catch block
...