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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1c1a139977eee854 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-20 10:32:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!wn14eed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc01.POSTED!not-for-mail From: Wannabe h4x0r Subject: Re: Case statement and Integers. Newsgroups: comp.lang.ada References: <3CC1A135.7020505@bellatlantic.net> User-Agent: Pan/0.11.1 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Alan Reynolds" Message-ID: NNTP-Posting-Host: 12.245.48.122 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1019323931 12.245.48.122 (Sat, 20 Apr 2002 17:32:11 GMT) NNTP-Posting-Date: Sat, 20 Apr 2002 17:32:11 GMT Organization: AT&T Broadband Date: Sat, 20 Apr 2002 17:32:11 GMT Xref: archiver1.google.com comp.lang.ada:22823 Date: 2002-04-20T17:32:11+00:00 List-Id: On Sat, 20 Apr 2002 13:11:07 -0400, Alan Reynolds wrote: > Hi Chris, > > It would seem that you need to review the RM (or course notes) > concerning the use of the "case" statement and what constitutes a valid > alternative ("when =>"). What's appropriate here > is to use an "if ... then ... elsif ... then ... else ... end if" > statement. > > If "left_swap" and "right_swap" are indices similar to "j" then you > simply provide "numbers(left_swap)" and "numbers(right_swap)" as > arguments to "swap". > > This brings back fond memories of my 2nd quarter comp. sci. class > assignment to implement the "quicksort" algorithm in Pascal. Keep > working on it. > > Have fun, > Al I'm looking over the RM now. The course notes didnt provide much info in this regard, as it assumed I would be using an if..else statement structure in the sort. Not me. No way. I gotta be different. I have this irresistable urge to zig while everyone else in the course zags.(Been pretty successful so far). I have to think up a solution that nobody else (at my level) has thought of before. Using an if..else statement wouldn't be original. Heh. The fun part is when the professor plops my code up on the projector and says "Now this is how Chris did it." Cause I'm crazy like that. Thanks. Chris