recursion problem

This is a discussion on recursion problem within the C++ Programming forums, part of the General Programming Boards category; i made this program as i was tring to figure out a way to print out the vector from int ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4

    recursion problem

    i made this program as i was tring to figure out a way to print out the vector from int main but i had to chage the return value to be the actual vector which caused a problem because i am trying to make the substrings print out recursively and i originally had
    return store_all_substrings(s.subtr(1))
    but as i was changing some things it actually works now but the problem is i dont know why. it seems like it should only print out a few but it somehow repeats itself and i dont really know if it is doing it recusively. the code is as follows:

  2. #2
    ...and never returned. StainedBlue's Avatar
    Join Date
    Aug 2009
    Posts
    168
    Quote Originally Posted by claudiat13 View Post
    the code is as follows:
    BUG REPORT:

    Pressing F5 repeatedly failed to generate said lines of code.
    goto( comeFrom() );

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    4
    whoops sorry didnt get to finish what i was posting. i actually fixed it but now i have another problem

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 09-21-2009, 09:50 PM
  2. Template Recursion Pickle
    By SevenThunders in forum C++ Programming
    Replies: 20
    Last Post: 02-05-2009, 08:45 PM
  3. Recursion problem
    By trnd in forum C Programming
    Replies: 2
    Last Post: 02-01-2009, 02:06 PM
  4. Problem of understanding recursion
    By ixing in forum C Programming
    Replies: 2
    Last Post: 05-02-2004, 03:52 PM
  5. recursion problem
    By dustinc in forum C++ Programming
    Replies: 1
    Last Post: 10-29-2001, 03:29 AM

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