Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » ref questions
ref questions [message #58125] Mon, 21 February 2022 08:15
reign_of_terror is currently offline  reign_of_terror
Messages: 6
Registered: October 2021
Promising Member
HI all-

I have a question about ref. Ref to Ref assigns address and not the value.
How can I prove it? There are 2 different addresses.

Value v = 3;
Ref r=v;
Ref y;
y=r;
Cout() << &r << "\n";
Cout() << &y << "\n";
Cout() << y.GetValue();
Cout() << "\n";

0x171fd58
0x171fd30
3
TIA reign_of_terror
Previous Topic: Ini file
Next Topic: reference solved:
Goto Forum:
  


Current Time: Sat Jun 15 06:30:18 CEST 2024

Total time taken to generate the page: 0.01526 seconds