C language without reference, C + + only.
References can act as part of a pointer, but are more secure than pointers.
A reference can be thought of as an "alias" of a variable. Manipulating a reference is like manipulating the original variable. Used
primarily for parameter passing of a function. Because C language does not have similar VB "Pass reference call" This function, so the reference of C + + fills this blank. Since then, even if you need to change the parameters, but also directly pass a variable past can be. This is of greater importance in operator overloading.
int A; Declare variable a
int& RA = A;//declare a reference, the name is Ra,ra reference a
note, the RA declaration must also give a reference to who it actually refers to
int& RA;
also, once a reference is declared, it cannot be modified to another variable, which is different from the pointer.
RA = b;//This is not going to work because it's already int &ra = a