摘要: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeat 阅读全文
posted @ 2015-10-09 22:53 eversliver 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 首先说下标准库的swap算法:1 namespace std{2 template3 void swap(T & a, T & b)4 {5 T tmp = a;6 a = b;7 b = tmp;8 }9 }显然的,标... 阅读全文
posted @ 2015-10-09 09:46 eversliver 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 首先还是下面这个class;class Rational{public: Rational(int numirator = 0, int denominator = 1); int numurator() const; int denominator() ... 阅读全文
posted @ 2015-10-09 09:35 eversliver 阅读(349) 评论(0) 推荐(0) 编辑