Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: sort.exe?

Author: Pete Galati

Date: 18:15:14 07/22/00

Go up one level in this thread


On July 22, 2000 at 19:45:19, Jeroen van Dorp wrote:

>It's for people who put togethere electronics, say them with electricity
>companies or ISP's and so on.
>
>If you take a hand full of fuses, and wants to know what fuse is for low amp and
>which one for high amp put in the values and it will sort them, sya:
>
>16A
>200A
>1A
>3A
>12A
>125A
>
>will result in
>
>1A
>3A
>12A
>16A
>125A
>200A
>
>But the program is buggy so sometimes it goes wrong and we'll experience power
>and ISP outages.
>
>That's why.
>
>Jeroen ;-}

Good thought, but that doesn't seem to work:

Sort demonstration

How many elements to sort ? 3
Enter data to be sorted:
Enter value for element number     0: 89big
Enter value for element number     1: 3small
Enter value for element number     2: 20mid
Sorting...
Results:
Element number     0:     3
Element number     1:    20
Element number     2:    89

But I suppose you might be able to sit down with the code for a while and get it
to accept letters as 1-26 and have it sort words into numerical order, like the
word "order" would translate to "deorr", and "and" would be "adn".

Pete



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.