摘要: #include #include #include #include #include #include using namespace std; //返回一个迭代器指向找到的元素 vector::iterator search_vec(vector::iterator beg, vector::iterator end, int val){ for (; beg != end; be... 阅读全文
posted @ 2017-10-24 11:15 bananaa 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std; /*istream & f(istream&in){ string v; while (in>>v,!in.eof()) { if (in.bad()) throw runtime_error("IO流错误"); if ... 阅读全文
posted @ 2017-10-24 10:37 bananaa 阅读(651) 评论(0) 推荐(0) 编辑