//******************************************* //test list exception func can call //******************************************* #include using namespace std; void functest(int valtest)throw(int,double){ if(valtest==1) throw valtest; if(valtest==2) throw 2.5; if(valtest==3) throw '3'; } void my_unexpected(){ cout<<"threw exception not allowed in functest\n"; abort(); } int main(){ set_unexpected(my_unexpected); cout<>val; functest(val); } catch(int a){ cout<<"catch exception type int\n"; } catch(double b){ cout<<"catch exception type double\n"; } catch(char c){ cout<<"catch exception type char\n"; } return 0; }