#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2008
    Posts
    17
    Rep Power
    0

    Smile String in range.


    My order is defined as 'A < a < B < b ...< Z < z'.
    I have to find if a given string is in range or not.
    Ex. If my range is AaA - BaB, AA or AaaB is inthe range, but not CbAA.

    I am looking for any pointers, ideas, suggestions to help me start.
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,379
    Rep Power
    1871
    Does converting everything to uppercase (just for comparisons) work?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo