471,831 Members | 1,364 Online

# 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.
Sep 30 '06 #1
3 3777
X~coder
14
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
Sep 30 '06 #2
m013690
23
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...
Sep 30 '06 #3
sicarie
4,677 Expert Mod 4TB
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?
Dec 23 '07 #4