I'll answer some of your crap for you:
In this, x is the L Value and 5 is the R Value.
The golden rule about these two is thus:
The R values can never go on the left in this case.
Observe:
Code:
int x = 5; // Correct
5 = int x; // What're you thinking? Ahh!
And a dereference operator is *. It's important with pointers.
Observe:
Code:
int Age = 5; // Initializes Age w/ value of 5
cout << Age; // Prints out Age's Value (5)
int * PointsToAge = &Age; // Creates pointer pointing to Age's memory address
*PointsToAge = 10; /*This is a bit tricky.
This is where
you use your pointer to manipulate your data.
This line can be read as
'Whatever this pointer (PointsToAge) is
pointing to is to be assigned to the value of 10.'
Since this particular pointer's
pointing to Age,
Age is re-assigned to the value of 10.*/
cout << Age; // This is proven here, when Age is printed once more. (10)
I hope that helps