0
Nptel Quiz
Guys please anyone explain the below code https://code.sololearn.com/cXzzFhiQJCar/?ref=app
1 ответ
+ 1
what exactly do you want to know.
It's a code that creates a Point class and markes as function to output the point as friend. This allows this function to access private members.
I think the formatting of the code is really bad, so maybe simply formatting helps already to understand the code:
https://code.sololearn.com/cyRW7j42Fw4G/?ref=app
feel free to ask stuff. I might annotate the program with more comments if wanted.