0

Nptel Quiz

Guys please anyone explain the below code https://code.sololearn.com/cXzzFhiQJCar/?ref=app

23rd Feb 2023, 2:54 PM
Kabilan K
Kabilan K - avatar
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.
24th Feb 2023, 4:00 PM
Erarnitox
Erarnitox - avatar