comp.lang.ada
 help / color / mirror / Atom feed
* making compare function with multiple values(help for newbie)
@ 2006-10-11 23:03 isaac2004
  2006-10-12  5:36 ` Jeffrey R. Carter
  0 siblings, 1 reply; 7+ messages in thread
From: isaac2004 @ 2006-10-11 23:03 UTC (permalink / raw)


hello for a assignment in one of my classes, i am asked to add 3 values
to an array for every appearance of the index (so 3 values like 222, 5,
4 are in one index of the array) and then compare a user prompt to see
if the exact index is in the array, i can do this if there is only one
value but im haveing trouble getting my head around the comparing of
three values at once could i just use nested conditionals in a for
loop. any algorithm ideas would be greatly appreciated. thank you




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-10-12 18:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-11 23:03 making compare function with multiple values(help for newbie) isaac2004
2006-10-12  5:36 ` Jeffrey R. Carter
2006-10-12  6:08   ` isaac2004
2006-10-12  7:24     ` Ludovic Brenta
2006-10-12 16:21       ` isaac2004
2006-10-12 18:40         ` Jeffrey R. Carter
2006-10-12 18:35     ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox