C++学习历程

第一步:编码风格:Google
https://blog.csdn.net/freeking101/article/details/78930381

1.c与c之间调用

C++与C之间相互接口和库函数调用
C语言封装 C++的类,在 C里面使用

2.实验楼实验之一:智能指针的实现
3.C++中类成员函数作为回调函数

方法:类里包含自己的对象,回调函数为static
https://blog.csdn.net/qq_34248512/article/details/77036448
https://blog.csdn.net/this_capslock/article/details/17001003

4.智能指针循环引用weak_ptr

https://blog.csdn.net/chm880910/article/details/78964712

5.STL基础

C++基础-string截取、替换、查找子串函数
C++ STL list的初始化、添加、遍历、插入、删除、查找、排序、释放
C++ STL Map的创建、删除、插入、更新、遍历
C++三种容器:list、vector和deque的区别

6.覆盖、隐藏

https://www.cnblogs.com/cdp1591652208/p/7748546.html
覆盖:有virtual且一模一样
隐藏:上面的条件不完全具备

7.类关系UML

https://zhuanlan.zhihu.com/p/24576502
依赖:临时使用关系,三种使用方法
关联:同级使用,独立,new,
聚合:包容,set赋值,把别人拉过来
组合:析构是否要析构掉,初始化列表

8.array、vector

https://codeday.me/bug/20170403/8451.html

9.依赖倒置原则:父类实例化子类的对象,外部统一调父类的接口

https://blog.csdn.net/noricky/article/details/80051354

猜你喜欢

转载自blog.csdn.net/Hu_yilang/article/details/87162387
今日推荐