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

Username:   Password: 
 RegisterRegister   
 string comparisons
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
air_force91




PostPosted: Sun Nov 23, 2003 9:26 am   Post subject: string comparisons

how do i compare strings alphabetically...like i ask a user their last name and if their last names begin with letter a to u they are placed in class 1 and if their last names begin with letter v to z, they are placed in class 2?

need help ASAP...thanx.... Smile
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Sun Nov 23, 2003 9:44 am   Post subject: (No subject)

if lastname (1) >= "A" and lastname (1) <= "U" or lastname (1) >= "a" and lastname (1) <= "u" then
%class 1
end if
air_force91




PostPosted: Sun Nov 23, 2003 9:59 am   Post subject: (No subject)

turing's really hard man...im tired of problem solving...ive gotta finish 3 pages of questions...it's really hard............................ Crying or Very sad

and my teacher doesn't even explain stuff...
Andy




PostPosted: Sun Nov 23, 2003 3:33 pm   Post subject: (No subject)

turing is a joke lil boy... and nick, you can compare whole strings at a time
for example

code:

if "Andy">"Nick" then
    put "haha"
end if
%haha gets outputted
poly




PostPosted: Sun Nov 23, 2003 4:36 pm   Post subject: (No subject)

air_force91 wrote:
turing's really hard man...im tired of problem solving...

lol haha oh god I was having a bad day until I read this one. Dude leave the class as of Monday... if you are tired of problem solving well there's no point in staying as compsci is all about problem solving... hell life is about problem solving!
Andy




PostPosted: Sun Nov 23, 2003 6:54 pm   Post subject: (No subject)

dan, you should create a new rank called the censored and give them to ppl like air_force

[mod:113a7605a9]
:censored:

grow up!
[/mod:113a7605a9]
air_force91




PostPosted: Sun Nov 23, 2003 8:49 pm   Post subject: (No subject)

errrr...u ppl are making me angry...im a "SHE"....ughhhh!!! im now in comsci...im taking computer engineering...well...ive changed my mind...i think it's a good opportunity for me to learn to face these challenges ...ughhhh...
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  [ 7 Posts ]
Jump to:   


Style:  
Search: