Newbie c++ problems

Discussion in 'Software' started by rohankataria26, May 12, 2007.

  1. rohankataria26

    rohankataria26

    Joined:
    May 10, 2007
    Messages:
    1
    I have just started learning c++ and i am facing a problem in one of the programs. I am using recursive functions and want to end the recursion of the function before the full recursion takes place. I dont know how to do so. If i use return then that particular execution of the function ends but the recursion continues. Plz help
    rohankataria26, May 12, 2007
    #1
    1. Advertising

  2. rohankataria26

    sansay

    Joined:
    May 31, 2007
    Messages:
    2
    As I recall, you need to have an escape condition which is valid for all recursions. I wrote this kind of stuff years ago, but haven't have a need for this in years.

    Please give me the code you wrote, and I will take a look.
    sansay, Jun 6, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manuel Jung
    Replies:
    0
    Views:
    423
    Manuel Jung
    Jul 21, 2003
  2. No Spam
    Replies:
    3
    Views:
    3,940
    No Spam
    Jun 7, 2004
  3. news.ntlworld.com

    Home Network Problems (Newbie Questions)

    news.ntlworld.com, Dec 18, 2005, in forum: Cisco
    Replies:
    14
    Views:
    2,515
    Cerebral Believer
    Dec 23, 2005
  4. Lee
    Replies:
    4
    Views:
    1,983
  5. New_kid@nowhere.new

    VONAGE Newbie w/newbie question

    New_kid@nowhere.new, Aug 11, 2007, in forum: VOIP
    Replies:
    0
    Views:
    1,327
    New_kid@nowhere.new
    Aug 11, 2007
Loading...

Share This Page