C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-06-2010, 02:36 PM   #1
Registered User
 
Join Date: Feb 2010
Posts: 1
Smile C++ basic calling function

hi
Code:
Class x{

 void a();
 void b();

}

class x::a(){

  how to call b(); here ?????

}
Thanks in advance !!
kaeng is offline   Reply With Quote
Old 02-06-2010, 02:42 PM   #2
Registered User
 
Join Date: Oct 2009
Posts: 10
Code:
b();
emef is offline   Reply With Quote
Old 02-06-2010, 02:46 PM   #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   Reply With Quote
Old 02-06-2010, 05:58 PM   #4
Unregistered User
 
Yarin's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 12:14 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22