在类中,有着指向对象自身的this指针。
当你调用类的成员函数时,都会有this指针占据着第一个形参的位置,但是this指针是隐藏的,而且this指针在实参和形参的位置不能写出来。
我们将以下面这个类为例子讲解this指针。
class A
{
…
1 The Open Systems Interconnection (OSI) Basic Reference Model specified in 摘要:the Open Systems Interconnection (OSI) Basic Reference Model specified in ISO/IEC 7498 and ISO/IEC 10731, which structures communication systems into seven layers. …