Thread: recursiveMinimum

  1. #1
    Registered User msjawiseass's Avatar
    Join Date
    Nov 2013
    Posts
    2

    Red face recursiveMinimum

    I have wrote the function but am blanking on what to put in main. can u advise.
    Attached Files Attached Files

  2. #2
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Seems unlikely.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    As mentioned in your other thread, you should past your code here in code tags.

    Also, please be more specific with your question.

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Figure out what these words mean "Function prototypes"; then figure what you need to do in that comment section!

    Update the comments to match your program!

    Decide whether to use global variables in program or local to main variables.
    (Global variables are NOT needed; so use local.)

    Call the function recursiveMinimum inside the main function.

    Tim S.
    Last edited by stahta01; 11-26-2013 at 01:45 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User
    Join Date
    Sep 2013
    Location
    Jamaica
    Posts
    134
    yea give more info on what you want to solve.

    EDIT: oh I see what your trying to do I think. 5 mins
    Last edited by BIGDENIRO; 11-26-2013 at 01:47 PM.

  6. #6
    Registered User
    Join Date
    Sep 2013
    Location
    Jamaica
    Posts
    134
    Well I think you were trying to find the minimum element of an Array and didn't know how to call the function in the main. so I edited your code to what I think is appropriate. You should compare each code cause I did alot of changes.
    Attached Files Attached Files

  7. #7
    - - - - - - - - oogabooga's Avatar
    Join Date
    Jan 2008
    Posts
    2,808
    Quote Originally Posted by BIGDENIRO View Post
    Well I think you were trying to find the minimum element of an Array and didn't know how to call the function in the main. so I edited your code to what I think is appropriate. You should compare each code cause I did alot of changes.
    So you actually believe that this person wrote the recursiveMinimum function and then didn't know how to call it? That's what you believe?

    EDIT: Now that I look at your "solution" I see you have no idea what you're doing. Do you even know what "recursive" means?
    Last edited by oogabooga; 11-26-2013 at 02:04 PM.
    The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss

  8. #8
    Registered User
    Join Date
    Sep 2013
    Location
    Jamaica
    Posts
    134
    Quote Originally Posted by oogabooga View Post
    EDIT: Now that I look at your "solution" I see you have no idea what you're doing. Do you even know what "recursive" means?
    to be honest i do not and I read here comment the comment said "Functionality: Function that find minimum element of array."

Popular pages Recent additions subscribe to a feed

Tags for this Thread