c ++ whether a character is in digital form tips

 

/ * This involves the problem of encoding and operators 
'0' ASCII 48 
'. 1' ASCII 49 
'2' 50 ASCII 
char = X '. 1'
X> = '0' && X
< = '. 9' is satisfied // digital form '. 5' - '0' =. 5 // ASCII characters turn int operator
of course also be used to determine the number of functions
* /

Guess you like

Origin www.cnblogs.com/jielearscoding/p/12509652.html