摘要: #include<iostream>#include<cmath>#include<stdexcept>using namespace std;double area(double a,double b,double c) throw (invalid_argument){ if(a<=0||b<= 阅读全文
posted @ 2023-05-19 21:15 不会JAVA的小袁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string>using namespace std;class MyException{ public: MyException(const string &message):message(message){} ~MyException(){ 阅读全文
posted @ 2023-05-19 21:04 不会JAVA的小袁 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>#include<functional>#include<vector>using namespace std;int main(){ int iarray[]={26,17,15,22,23,33,32,40}; vecto 阅读全文
posted @ 2023-05-19 20:52 不会JAVA的小袁 阅读(3) 评论(0) 推荐(0) 编辑