Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Listing Alphabetically?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
HowIDo




PostPosted: Mon Dec 15, 2014 3:48 pm   Post subject: Listing Alphabetically?

What is it you are trying to achieve?
The knowledge to list something alphabetically in Turing


What is the problem you are having?
Not knowing how to do it.


Describe what you have tried to solve this problem
Look around.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
-

Turing:


<Add your code here>



Please specify what version of Turing you are using
4.1
Sponsor
Sponsor
Sponsor
sponsor
Nathan4102




PostPosted: Mon Dec 15, 2014 4:42 pm   Post subject: RE:Listing Alphabetically?

In Turing, you can compare strings alphabetically by using the '>', '<' and '=' operator.

If x > y = true, you know that x is later than y in an alphabetical list. The opposite is true for <.

if (x = y) = true, you know the strings are alphabetically equal, and it makes no odds which order you place them in.

Using these, you should be able to craft some sort of method to alphabetically sort an array of strings (or multiple String variables).
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: