- 博客(4)
- 收藏
- 关注
原创 区分深构造和浅构造
C++ 深拷贝与浅拷贝区别深拷贝和浅拷贝最根本的区别在于是否真正获取一个对象的复制实体,而不是引用。假设B复制了A,修改A的时候,看B是否发生变化:如果B跟着也变了,说明是浅拷贝,拿人手短!(修改堆内存中的同一个值)如果B没有改变,说明是深拷贝,自食其力!(修改堆内存中的不同的值)浅拷贝(shallowCopy)只是增加了一个指针指向已存在的内存地址,深拷贝(deepCopy)是增加了一个指针并且申请了一个新的内存,使这个增加的指针指向这个新的内存,使用深拷贝的情况下,释放内存的时候不会因为出
2021-04-25 22:46:51
243
原创 insert picture
insert pic in html5common pic tags:(1) src(2) alt(3) title(4) width(5) height(6) border(1) src: The “src” attribute specifies the location (URL) of the external resource. It applied to insert pic.!!!PAY ATTENTIONWe only can use pic where in f
2021-03-04 12:55:25
508
1
原创 VS code cannot initial html structure
VS code cannot initial html structureUsing vscode st udio to do development of web can save a lot of time comparing with traditiaonal ways, But sometimes it cannot be work toinitial html stucture with Tab button and "!".I conclude three ways to solve .
2021-03-04 10:51:07
223
1
原创 Abstract Data Type(ADT)
Abstract Data Type#defination of Abstract Data Type: (ADT) are models with defined behavior given by a set of values and a set of operations.# How to understand ADT is problem when I learn this part of ADDS(1).Data Type normally are values. It is basic
2021-03-02 20:58:48
290
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人