That's not how friends work. A friend just means that you can access the private members/methods of a class when you normally would only have access to the public ones.
Right, you can directly access private variables from a friend function. If x is a private variable in, say, class friendClass. You can say, within the function: