//******************************************* //test list exception func can call //******************************************* #include using namespace std; void functest(int valtest)throw(int,char,double){ if(valtest==1) throw valtest; if(valtest==2) throw 2.5; if(valtest==3) throw '3'; } int main(){ 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; }