摘要: From:Head First Design Patterns 阅读全文
posted @ 2014-08-18 23:43 anit_nait 阅读(98) 评论(0) 推荐(0) 编辑
摘要: From:Head First Design PatternsObserver: 阅读全文
posted @ 2014-08-18 16:09 anit_nait 阅读(122) 评论(0) 推荐(0) 编辑
摘要: From:Head First Design PatternsStrategy: 阅读全文
posted @ 2014-08-18 16:03 anit_nait 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.csdn.net/daheiantian/article/details/6438782Code:#include using namespace std;class A {public:A() {cout<<"int A::A()"<<endl;}A(A &a) {c... 阅读全文
posted @ 2014-08-16 22:30 anit_nait 阅读(379) 评论(0) 推荐(0) 编辑
摘要: From: http://blog.csdn.net/wuzhekai1985/article/details/6654667#include #include #include using namespace std;//萃取剂templatestruct Iterator_traits{ ... 阅读全文
posted @ 2014-08-11 08:07 anit_nait 阅读(145) 评论(0) 推荐(0) 编辑
摘要: The C++ standard says nothing about how implementations should manage template i nstantiation, so every implementation handles instantiation in its ow... 阅读全文
posted @ 2014-08-10 09:39 anit_nait 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Input: Executing std::cin >> v discards any whitespace characters in the standard input stream, then reads from the standard input into variable v. It... 阅读全文
posted @ 2014-08-09 11:17 anit_nait 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1. Definition:[capture] (parameters) mutable exception attribute -> return_type { body }功能上约等于:a.函数对象(仿函数), 仿函数可存储范围更广的数据b.局部函数http://zh.wikipedia.org... 阅读全文
posted @ 2014-08-07 13:41 anit_nait 阅读(186) 评论(0) 推荐(0) 编辑
摘要: From:深入理解C++11Assignment:Benifit: 1. 用于移动语义,提高效率。2. 函数转发 阅读全文
posted @ 2014-08-05 20:46 anit_nait 阅读(107) 评论(0) 推荐(0) 编辑
摘要: From:http://zh.wikipedia.org/wiki/%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8FCode:#include "stdafx.h"#include #include #include #include using namespace std;... 阅读全文
posted @ 2014-08-05 20:01 anit_nait 阅读(182) 评论(0) 推荐(0) 编辑