C++11-14新特性 第0讲

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lvxiangyu11/article/details/82961048

说明:本博客系列为课程笔记,课程是:C++2.0新特性 侯捷教授 源自Boolan

两个部分:语言部分+标准库部分

  1. 基础:c++语法语意

  2. 目标:较全面认识c++2.0新特性,从实例获得验证

  3. c++历史:

  • c++ 98(0.1)
  • c++ 03(TR1,technical report 1)
  • c++11(2.0)
  • c++14
  • c++17

同文件的使用不带.h,C的也不带.h,旧的仍能使用

了解编译器对C++2.0的支持。

常用网页:1.www.cplusplus.com

                  2.en.cppreference.com

                  3.gcc.gnu.org

书籍:The c++ standard library,c++ primer,the c+ programming langugae,effective Modern c++

确认对c++11的支持:

macro _cplusplus

#include<iostream>

using namespace std;

int main() {
	cout << __cplusplus << endl;
	system("pause");
	return 0;
}

(我的vs2017出来的一直是199711.。。。)

扫描二维码关注公众号,回复: 3522972 查看本文章

语言部分:

  • Variadic Templates
  • move Semantics
  • auto
  • Range-base for loop
  • Initializer list
  • Lambdas
  • ...

标准库部分:

  • type_traits
  • Unordered容器
  • forward_list
  • array
  • tuple
  • Con-currency
  • RegEx
  • ...

 

            

猜你喜欢

转载自blog.csdn.net/lvxiangyu11/article/details/82961048