![]() |
|
#1
|
|||
|
|||
Friend functionHi folks,,
I've tried to write below program to understand 'friend' functions CPP / C++ / C Code:
And I got following compilation error.. plz give suggestions to solve these name.cc:8: error: invalid use of incomplete type ‘struct C2’ name.cc:3: error: forward declaration of ‘struct C2’ name.cc: In member function ‘void C2::get_other(C1)’: name.cc:6: error: ‘int C1::value’ is private name.cc:23: error: within this context |
|||
|
#2
|
||||
|
||||
Re: friend functionTry reading:
http://msdn.microsoft.com/en-us/libr...he(VS.80).aspx ...then take a look at: http://publib.boulder.ibm.com/infoce...ef/cplr042.htm MxB |
|
#3
|
|||
|
|||
Re: Friend functionWell I'll be dog, I think I'm understanding this better.
What's wrong with this M? CPP / C++ / C Code:
cplusplus.com/doc/tutorial/inheritance.html |
Recent GIDBlog
Not selected for officer school by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 66 | 16-Jan-2010 10:53 |
| Problem executing nam-1.13 | RodolfoAlvizu | Computer Software Forum - Linux | 20 | 28-Feb-2009 15:23 |
| Flex and bison coding | lucky88star | C++ Forum | 5 | 24-Dec-2007 11:57 |
| Need Help with input files. | Efferus | C++ Forum | 2 | 24-Nov-2007 16:19 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 13:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The