More from It's All About Jrocks :
#include class myclass { int a, b; public: friend int sum(myclass x); void set_ab(int i, int j); }; void myclass::set_ab (int i, int j) { a = i; b = j; } // Note: sum() is not a member function of any class. int su...
09 May 2007 04:46
Just as we have the possibility to define a friend function, we can also define a class as friend of another one, granting that second class access to the protected and private members of the first one. #include using namespace std; class CSquare;...
09 May 2007 04:40
In principle, private and protected members of a class cannot be accessed from outside the same class in which they are declared. However, this rule does not affect friends. Friends are functions or classes declared as such. If we want to declare an ex...
09 May 2007 04:23
my proudly Band... it was called ILKOM Band when it was formed few years ago...yeah... maybe just because we are from the same major in college... computer science major (we called it ILKOM, the acronym from Ilmu Komputer).after we playing music for a yea...
01 May 2007 03:06
The best coffee experience that i ever had...just tonight...a few minutes ago...so refreshing...opening my mind up...thanks to you my friend...even you sit there...least a meter from me...but i don't know how can i say thanks to you...i can't ev...
26 Apr 2007 00:07





