![]() |
| | #1 |
| Registered User Join Date: Feb 2010
Posts: 1
| Code: Class x{
void a();
void b();
}
class x::a(){
how to call b(); here ?????
}
|
| kaeng is offline | |
| | #2 |
| Registered User Join Date: Oct 2009
Posts: 10
| Code: b(); |
| emef is offline | |
| | #3 |
| Registered User Join Date: Apr 2006
Posts: 1,337
| or alternately this->b(). Whichever you prefer.
__________________ It is too clear and so it is hard to see. A dunce once searched for fire with a lighted lantern. Had he known what fire was, He could have cooked his rice much sooner. |
| King Mir is offline | |
| | #4 |
| Unregistered User Join Date: Jul 2007
Posts: 1,016
| Class scope (C++ only) explains.
__________________ "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." - Benjamin Franklin |
| Yarin is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting an error with OpenGL: collect2: ld returned 1 exit status | Lorgon Jortle | C++ Programming | 6 | 05-08-2009 08:18 PM |
| Which Library Files for these unreferenced functions? | lehe | C++ Programming | 3 | 01-31-2009 10:30 PM |
| In over my head | Shelnutt2 | C Programming | 1 | 07-08-2008 06:54 PM |
| Screwy Linker Error - VC2005 | Tonto | C++ Programming | 5 | 06-19-2007 02:39 PM |
| Please Help - Problem with Compilers | toonlover | C++ Programming | 5 | 07-23-2005 10:03 AM |