C++ 11的功能不错,应该写点程序试试,否则以后的C++代码都不懂了。。。更别提写
http://developer.51cto.com/art/201312/422379.htm
几个特性:
auto:auto str = "Hello World";
decltype:
- int x = 3;
- decltype(x) y = x;
nullptr: int a = nullptr; // 编译失败,nullptr不能转型为int
序列化: for (auto p : m)
lamda表达式: for_each(iv.begin(), iv.end(), [b](int &x){cout<<(x + b)<<endl;});
变长参数:auto t2 = make_tuple(1, 2.0, "C++ 11", {1, 0, 2});
better 初始化方法: vector<int> iv{1, 2, 3};