vendredi 21 février 2014

Re: obj 8-2 topic




Jürgen Exner <(E-Mail Removed)> writes:

> So, to make long story short: while looping through the array jsut keep
> one running value $LargestNumberIHaveFoundSoFar which you update every
> time you find a lager value in the array. And when you get to the end of
> the array it must contain the largest value of all the array.


Depends what's in $LargestNumberIHaveFoundSoFar ;-). Set it to a value
taken from the array (it doesn't matter which one) before you start to
loo(p|k)ing.

--
John Bokma j3b

Blog: http://johnbokma.com/ Perl Consultancy: http://castleamber.com/
Perl for books: http://johnbokma.com/perl/help-in-ex...for-books.html





Aucun commentaire:

Enregistrer un commentaire