摘要: #include #include using namespace std; double vals[] = {10.1, 12.6, 33.1, 24.1, 50.0}; double[]& setValues( int i ) { return vals; // return a reference to the ith element } // main fu... 阅读全文
posted @ 2018-08-09 17:18 友哥 阅读(373) 评论(0) 推荐(0) 编辑
摘要: // constructing sets #include #include #include bool fncomp (int lhs, int rhs) {return lhs first; // empty set of ints int myints[]= {10,20,30,40,50}; std::set sec... 阅读全文
posted @ 2018-08-09 12:25 友哥 阅读(157) 评论(0) 推荐(0) 编辑