摘要: 阅读全文
posted @ 2013-10-24 17:20 calabashdad 阅读(167) 评论(0) 推荐(0) 编辑
摘要: template inline const T& Max_(const T& v1, const T& v2){ return v1 > v2 ? v1:v2;}1.采用模板实现,泛型化2.inline 内敛提交运行速度3.const保证数据不改动4.引用节省空间,也提高运行效率 阅读全文
posted @ 2013-10-24 15:14 calabashdad 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;class StrategyInterface{public: virtual void execute() = 0;};class ConcreteStrategyA: public StrategyInterface{public: virtual void execute() { cout execute(); }};int main(int argc, char *argv[]){ ConcreteStrategyA concreteStrategyA; ConcreteStr... 阅读全文
posted @ 2013-10-24 14:27 calabashdad 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 使用freemind。千里之行,始于足下。 阅读全文
posted @ 2013-10-24 10:14 calabashdad 阅读(82) 评论(0) 推荐(0) 编辑