Im stuck on using assigning a new variable with the value of another variable which is declared in a different class. For instance, the two values that I would like to trasnfer over are declared in parameters such as: Circle new=Circle(6.0, 5.0, 2.0);
Now, i would like to transfer over the 5.0 as a x value and 2.0 as a y value to calculate distance however im unsure on just how to get the parameter values over to another file, point.cpp. The variables x and y are set in point.h so those are no issue. It's only for x1 and y1
Would i pass by reference or point at? Thank you in advanced for your help!