#include#include //string #include using namespace std; int test(int a,int b,int k) { if(b==0) { cout<<"当前除数为0"< =5) { //相关的处理 return -2; } int str[5]={1,2,3,4,5}; cout<< str[k] < =5) { //相关的处理 //throw myerror(30,"数组访问越界"); throw out_of_range("out_of_range访问越界"); //throw(3.14f); } int str[5]={1,2,3,4,5}; cout<<"str[k]="<< str[k] <



