C++ basic calling function

This is a discussion on C++ basic calling function within the C++ Programming forums, part of the General Programming Boards category; hi Code: Class x{ void a(); void b(); } class x::a(){ how to call b(); here ????? } Thanks in ...

  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,053
    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
    1,690
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 09: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, 09:18 PM
  3. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  4. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11:03 AM

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