Hey guys this should be an easy one for you, but I've been stressing for like an hour trying to figure out why c++ wont let me access a private data member via a ...
Okay, I guess the friend functions don't have access to the private members. So i just defined x and y and used my set_x and set_y functions to take care of the rest.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果