工作記錄
2013年4月26日 星期五
[test] test values of string
"0123456789"
decimal symbols
isdigit()
"0123456789abcdef" "0123456789ABCDEF"
hexadecimal symbols
isxdigit()
"abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
alphabet symbols
isalpha()
isupper() / islower()
"+-*/"
arithmetic operators
ref:
http://en.wikipedia.org/wiki/Addition (+)
http://en.wikipedia.org/wiki/Subtraction (-)
http://en.wikipedia.org/wiki/Multiplication (*)
http://en.wikipedia.org/wiki/Division (/)
[test] test values of number
-1
first integer less than 0
0
zero
0b0
0x0
min of unsigned number
1
first integer greater than 0
0b1
0x1
max of a binary 1-digit number
2
2^1
over max of a binary 1-digit number
7
2^3 - 1
max of an octal 1-digit number
8
2^3
over max of an octal 1-digit number
9
max of a decimal 1-digit number
10
0xA
over max of a decimal 1-digit number
15
2^4 - 1
0xF
max of a hexadecimal 1-digit number
16
2^4
over max of a hexadecimal 1-digit number
127
2^7 - 1
max of signed char
128
2^7
-128
min of signed char
255
2^8 - 1
0xFF
max of unsigned char
256
2^8
32767
2^15 - 1
max of signed short int
32768
2^15
-32768
min of signed short int
65535
2^16 - 1
0xFFFF
max of unsigned short int
65536
2^16
4125252
new order phone number of Domino's Pizza Taiwan
28825252
old order phone number of Domino's Pizza Taiwan
0123456789
all decimal symbols
2147483647
2^31 - 1
max of signed int(32-bit)
max of signed long(32-bit)
2147483648
2^31
-2147483648
min of signed int(32-bit)
min of signed long(32-bit)
4294967295
2^32 - 1
0xFFFFFFFF
max of unsigned int(32-bit)
max of unsigned long(32-bit)
4294967296
2^32
9223372036854775807
2^63 - 1
max of signed long(64-bit)
max of signed long long
9223372036854775808
2^63
-9223372036854775808
min of signed long(64-bit)
min of signed long long
18446744073709551615
2^64 - 1
0xFFFFFFFFFFFFFFFF
max of unsigned long(64-bit)
max of unsigned long long
18446744073709551616
2^64
3.14
pi, 3.14159265359...
ref:
http://en.wikipedia.org/wiki/Integer
http://en.wikipedia.org/wiki/Positional_notation
http://en.wikipedia.org/wiki/Binary_numeral_system
http://en.wikipedia.org/wiki/Octal
http://en.wikipedia.org/wiki/Decimal
http://en.wikipedia.org/wiki/Hexadecimal
unix family os : /usr/include/limits.h
Domino's Pizza Taiwan :
http://www.dominos.com.tw/
2012年11月14日 星期三
[bdb] site list
http://adrian.idv.hk/doku.php/software/tiny/bdb
首頁
訂閱:
文章 (Atom)