Would there, by chance, be a way to have a variable constantly and automatically change to equal another variable?
Say you have variables o and p.
1 2
int o
int p
I know that you can say:
1 2 3
p = 3;
o = 6;
p = o;
p, in the end would equal 6. But if you were to change "o" at a later point, "p" would remain equal to 6. Is there any way to make "p" constantly equal "o"?