+ 1
C++ Quiz
A program with data member a and b initialized to 5 and 7. It should then use a friend function to swap, subtract 2 from each value and display resultant value
10 odpowiedzi
+ 4
Working now:
https://code.sololearn.com/cUqwNmiYKB3i/?ref=app
+ 2
You're welcome
+ 1
Homework or Challenge?
+ 1
Am a C# coder and I never use friend classes 😂😅.
Found this question somewhere. Wondering how it'll be implemented
+ 1
Ok. Gonna take a look on it
+ 1
I don't see the point of using friend function here. Can tell my why?
+ 1
Umm. Actually I have no idea
The question is exactly like that. I didn't understand either
+ 1
I see now. Then I'll just create an object to subtract one from each. Thanks man 👍
+ 1
For nothing. I learned a lot about classes now, i was going through tutorial without thinking and now i am like "I learned that, that is impossible".
+ 1
Uhh, I see. But you've been helpful. I appreciate.
I got you next time