try {
//some code...
if (denom == 0) throw"you have tryed dividing by 0 "; //throwing char*
//rest of code
}
catch (char* x) {
cout << x << endl; //this will show the "throw sting" to user
}
however this will end try block (rase up exception).
and program continues behind catch block!