Thread: C++ basic calling function

  1. #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 !!

  2. #2
    Registered User
    Join Date
    Oct 2009
    Posts
    10
    Code:
    b();

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    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.

  4. #4
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 08:28 AM
  2. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  4. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM