摘要: // 第二十四章 异常和错误处理//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 阅读全文
posted @ 2012-10-09 00:08 简单--生活 阅读(144) 评论(0) 推荐(0) 编辑
简单--生活(CSDN)