C ++ references
References in C ++ can be seen as another way of talking about the variable name, as well as the external number of the variable, another name, Value Method &
Int A = 100;
Int & aa = A; // defines an int-type application, which is a reference to variable.
Here, a and AA point to the same address in the memory, that is, they point to the same memory and store the same data.
An application is like a woman in ancient China. Once she is married to someone, she will spend the rest of her life. Therefore, if you define an alias for a variable, it will always belong to this variable, it will faithfully follow this variable, even if there are other variables in the middle to buy him, he will not change his master, but he will buy his money, as a result, his master is also affected.
Therefore, an application can also be seen as an alias constant.
When we try to assign a value to an alias, we can only change the value of another storage, but we cannot change the memory address pointed to by the alias,
The end!