Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #5186

Re: '5'-'0' = 5 alway? guaranteed?

From "crea" <no@invalid.com>
Newsgroups comp.lang.c++
References <t_dBp.16910$7H.13151@newsfe08.ams2> <ir3qlq$a84$1@dont-email.me> <vieBp.666$Ky.145@newsfe24.ams2> <4dd5764b$0$2413$cc2e38e6@news.uslec.net> <2011051916213466006-pete@versatilecodingcom>
Subject Re: '5'-'0' = 5 alway? guaranteed?
Message-ID <B0fBp.630$8_2.271@newsfe17.ams2> (permalink)
Organization virginmedia.com
Date 2011-05-19 21:24 +0100

Show all headers | View raw


"Pete Becker" <pete@versatilecoding.com> wrote in message 
news:2011051916213466006-pete@versatilecodingcom...
> On 2011-05-19 15:58:29 -0400, Noah Roberts said:
>>>
>>> ok, good to know also the letter-thing.
>>>
>>>
>>
>> He's wrong actually.  It's a really good bet, but by no means guaranteed.
>
> The character representations of the digits 0-9 are required to be 
> contiguous and in ascending order. And there's no similar requirement for 
> any other characters.
>

Thanks guys, good info which would be difficult to find from books (well, 
maybe google would help but this is not something which is told in schools 
or books) - yes, they use it sometimes, but I never read that its 
"guaranteed to work" which I really need to know. 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

'5'-'0' = 5 alway? guaranteed? "crea" <no@invalid.com> - 2011-05-19 20:13 +0100
  Re: '5'-'0' = 5 alway? guaranteed? "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-19 21:28 +0200
    Re: '5'-'0' = 5 alway? guaranteed? "crea" <no@invalid.com> - 2011-05-19 20:35 +0100
      Re: '5'-'0' = 5 alway? guaranteed? Noah Roberts <dont@email.me> - 2011-05-19 12:58 -0700
        Re: '5'-'0' = 5 alway? guaranteed? Victor Bazarov <v.bazarov@comcast.invalid> - 2011-05-19 16:10 -0400
        Re: '5'-'0' = 5 alway? guaranteed? Pete Becker <pete@versatilecoding.com> - 2011-05-19 16:21 -0400
          Re: '5'-'0' = 5 alway? guaranteed? "crea" <no@invalid.com> - 2011-05-19 21:24 +0100
        Re: '5'-'0' = 5 alway? guaranteed? "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-20 00:39 +0200

csiph-web