From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8d87eba0b8755b48,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail From: "isaac2004" Newsgroups: comp.lang.ada Subject: making compare function with multiple values(help for newbie) Date: 11 Oct 2006 16:03:55 -0700 Organization: http://groups.google.com Message-ID: <1160607835.370325.213610@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: 140.160.105.161 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1160607840 3214 127.0.0.1 (11 Oct 2006 23:04:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 11 Oct 2006 23:04:00 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e3g2000cwe.googlegroups.com; posting-host=140.160.105.161; posting-account=bWy1LAwAAAAtVkasDCH0ykMCBMNd-FcL Xref: g2news2.google.com comp.lang.ada:6923 Date: 2006-10-11T16:03:55-07:00 List-Id: 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