it would be nice to know how to get the max value of an initialized array. example: sword[1] 25 sword[2] 10 sword[3] 15 sword[4] 35 sword[5] 08 -------------- so that you look at all those values in the array and pull them out without having to use a selection to say sword[1] > sword[2] and sword [1] > sword[3] and sword[1] > sword[4] and sword[1] > sword[5]
for each array element. It seems over encumbered. Do you know of a way to just be like: is sword [1] > sword2-5? and so on and so forth for the other selections?
it would be nice to know how to get the max value of an initialized array.
ReplyDeleteexample:
sword[1] 25
sword[2] 10
sword[3] 15
sword[4] 35
sword[5] 08
--------------
so that you look at all those values in the array and pull them out without having to use a selection to say sword[1] > sword[2] and sword [1] > sword[3] and sword[1] > sword[4] and sword[1] > sword[5]
for each array element. It seems over encumbered. Do you know of a way to just be like:
is sword [1] > sword2-5? and so on and so forth for the other selections?