Help create a getter for the class Point double & x ();

Closed due to the fact that the essence of the question is unclear by the participants user194374, AK , rjhdby , αλεχολυτ , Regent Jan 29 'at 5:25 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    struct Point { double x_,y_; double& x() { return x_; } };