Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.41K
~223 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for awesome_cool

I want to assign a value to the variable x which belongs to the class X using friend function. Is there any way to assign a value, say 30 to the variable x using the friend function. I tried the following code but the output is different. [CODE]#include <iostream> #include …

Member Avatar for NathanOliver
0
223