Funtion to help finding the Largest Value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HEMH6
    New Member
    • Sep 2006
    • 2

    Funtion to help finding the Largest Value

    Who can help solve this problem???

    Finding the Largest Value

    (a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

    (b)Write a main program that inputs MAX values from the keyboard into a signed
    integer array, array, and points, using largest(), the largest value to the screen.
  • X~coder
    New Member
    • Sep 2006
    • 14

    #2
    this sounds more like a homework but here is your code
    c ++

    Code removed per posting guidelines
    ////////////////////////////////////////////////////////////////////////////////
    at b) try to be more specific && give an example


    and try to solve your homework allone

    Comment

    • m013690
      New Member
      • Sep 2006
      • 23

      #3
      If you're so adamant about him doing his homework alone, you could have just declined the help. On the other hand, if you're looking to be a know-it-all, then don't be so critical of someone else...

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Originally posted by HEMH6
        Who can help solve this problem???

        Finding the Largest Value

        (a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as arguments.

        (b)Write a main program that inputs MAX values from the keyboard into a signed
        integer array, array, and points, using largest(), the largest value to the screen.
        So what have you done on this? Where are you stuck? I'd start with the prototype of largest() - what is it passed, what does it return and how do you show that?

        Comment

        Working...