comp.lang.ada
 help / color / mirror / Atom feed
From: Wannabe h4x0r <chris@dont.spam.me>
Subject: Re: Case statement and Integers.
Date: Sat, 20 Apr 2002 17:32:11 GMT
Date: 2002-04-20T17:32:11+00:00	[thread overview]
Message-ID: <vChw8.79741$G72.57096@sccrnsc01> (raw)
In-Reply-To: 3CC1A135.7020505@bellatlantic.net

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 <discrete_choice_list> =>").  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



  reply	other threads:[~2002-04-20 17:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-20 16:42 Case statement and Integers Wannabe h4x0r
2002-04-20 17:04 ` Rhoady
2002-04-20 17:11 ` Alan Reynolds
2002-04-20 17:32   ` Wannabe h4x0r [this message]
2002-04-20 18:31     ` tmoran
2002-04-21  3:59       ` Wannabe h4x0r
2002-04-22  3:01       ` Robert Dewar
2002-04-22  5:14       ` Anders Wirzenius
2002-04-20 21:26     ` Ted Dennison
2002-04-20 19:14 ` Vadim Godunko
2002-04-22  3:05   ` Robert Dewar
2002-04-22  8:41     ` Vadim Godunko
2002-04-22 13:16       ` Robert Dewar
2002-04-23  6:38     ` Wannabe h4x0r
2002-04-22 16:58 ` Anatoly Chernyshev
2002-04-22 17:55   ` tmoran
2002-04-22 19:51     ` Anatoly Chernyshev
2002-04-24 11:41   ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
2002-04-22  9:11 Grein, Christoph
replies disabled

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