摘要:
// 第二十四章 异常和错误处理//1异常/*#include <iostream>using namespace std;class wrong{};void error(){ cout<<"出错"<<endl; throw wrong();}int main(){ try{ error(); } catch(wrong) { cout<<"该错误已经解决"<<endl; } return 0;}*/#include <iostream>using namespace std;co 阅读全文