Advertisement

1 - 10 of 102 containing alltags:("friends") (0 seconds)
class B; class A { int Func1( B& b ) ; int Func2( B& b ) ; }; class B { private: int _b; friend int A::Func1( B& ); // Grant friend access to one // function in class B. }; int A::Fu...
Zones: C#Date Answered: 06/02/2003 Grade: B Views: 0
Hi, I am curious, why do we need friends?  Why instead did they not allow us to access private members of a class by simply having the address of the class?  How I see it, that is just like having...
Zones: C++Date Answered: 04/04/2006 Grade: A Views: 0
I am interested to hear views on how you define the term 'friend'. When does an acquaintance become a friend and what is the difference? I'm also interested to hear views as to why friends are impo...
Zones: Philosophy & ReligionDate Answered: 06/15/2006 Grade: A Views: 0
I am porting a project from VC++ 4.1 to 5.0 and have encountered the following problem: A template class declares an iterator (also a template class) as friend.  How do I correctly do this? old l...
Zones: Windows MFCDate Answered: 09/29/1998 Grade: B Views: 0
I'm taking a C++ class and I'm confused on how Friends should be used.  One assignment was to create 3 classes, one to enter information the other to hold longest and shortest words and the other t...
Zones: C++Date Answered: 08/10/2000 Grade: B Views: 0
I have a Friend function in a class, i want to call it from a standard module that belongs to the same project, why i cannot see it from within standard module?
Zones: Visual BasicDate Answered: 06/03/2003 Grade: A Views: 0
i still quite don't understand those friend classes. seems that child classes are not friend anymore. class A {       friend class B ;       int n ; } ; class B {       void fun () {             A a ;             a.n = 0...
Zones: C++Date Answered: 05/29/2003 Grade: A Views: 0
I want to access a static variable in one sub procedure from another. In c++ you can declare an object to be a friend of another object. Is there a similar way to do this in VB with sub procedures?...
Zones: Visual BasicDate Answered: 05/29/2003 Grade: B Views: 0
Hello - I'm working on a "Mail to a Friend" form and have been able to build it BUT, whenever I test and enter the recipient's address and then click the submit button I get a security warning t...
Zones: Web Development, Windows BatchDate Answered: 08/26/2003 Grade: A Views: 0
Hi all,        Please find the question, I want to know how many types of inheritance are there in C++, and give simple examples for friend functions/class and virtual functions. Thanks in advanc...
Zones: C++, Tivoli Storage ManagerDate Answered: 02/01/2004 Grade: A Views: 0