HELP!! method calling...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jjh
    New Member
    • Sep 2006
    • 21

    #1

    HELP!! method calling...

    So what i am trying to do is call a method with in a method.

    Example:
    Code:
    void printBooks()
    {
        ....
        findRelavant()
    }
    void findRelavant()
    {
    ....
    }
    Is this posible or do i have to do something else????

    I tried it in my code and got 3 error messages.
    1. error C3861: 'findRelevant': identifier not found
    2. error C2365: 'findRelevant' : redefinition; previous definition was 'formerly unknown identifier
    3. error C3861: 'findRelevant': identifier not found

    Please Help
  • vermarajeev
    New Member
    • Aug 2006
    • 180

    #2
    Originally posted by jjh
    So what i am trying to do is call a method with in a method.

    Example:
    Code:
    void printBooks()
    {
        ....
        findRelavant()
    }
    void findRelavant()
    {
    ....
    }
    Is this posible or do i have to do something else????

    I tried it in my code and got 3 error messages.
    1. error C3861: 'findRelevant': identifier not found
    2. error C2365: 'findRelevant' : redefinition; previous definition was 'formerly unknown identifier
    3. error C3861: 'findRelevant': identifier not found

    Please Help
    You need to first declare 'findRelevant' before it can be used lise


    Code:
    void findRelavant();
    void printBooks()
    {
        ....
        findRelavant()
    }
    void findRelavant()
    {
    ....
    }

    Comment

    Working...