//********************************************** //test use catch(...) to call all exception //*********************************************** #include using namespace std; int main(){ int val; try{ cout<<"insert 1 2 or 3\n"; cin>>val; if(val==1) throw "error!"; else if(val==2) throw 10; else if(val==3) throw 21.5; else cout<<"value .. "<