Number of digits and value range of basic types in C ++:
Symbol property Length attribute basic type occupied by the number of digits Value Range Input operator example output operator example
-- Char 8-2 ^ 7 ~ 2 ^ 7-1% C % C, % d, % uSigned -- char 8-2 ^ 7 ~ 2 ^ 7-1% C % C, % d, % uUnsigned -- char 8 0 ~ 2 ^ 8-1% C % C, % d, % u
[signed] short [int] 16-2 ^ 15 ~ 2 ^ 15-1% HD unsigned short [int] 16 0 ~ 2 ^ 16-1% Hu, % ho, % HX
[signed] -- int 32-2 ^ 31 ~ 2 ^ 31-1% d unsigned -- [int] 32
special square is (), then the output of the program is
2 2 3 32 1 1 34 1 0 54 4 5 5
The same number is the same card.
[Cpp]/*Tr: the row number in the upper left corner of the checker;Tc: the column number in the upper left corner of the Board;Dr: the row number of the special square;Dc: column number of the special square;Size: size = 2 ^ k, the board size is 2 ^ k * 2 ^ k;*/Void chessBoard (int tr, int tc
+ 038% f, % e, % g-- Double 64 +/-1.79769e + 308% lf, % le, % lg % f, % e, % g-- Long double 96 +/-1.79769e + 308% Lf, % Le, % Lg
Notes:
1. Note! Each row in the table represents a basic type. "[]" Indicates that it can be omitted.For example, char, signed char, and unsigned char are different types;Int, short, and long are also different types.You can use the function overload feature of C ++ for verifica
, % i64x
-- Float 32 +/-3.40282e + 038% F, % E, % G-- Double 64 +/-1.79769e + 308% lf, % Le, % LG % F, % E, % G-- Long double 96 +/-1.79769e + 308% lf, % Le, % LG
Notes:
1. Note! Each row in the table represents a basic type. "[]" Indicates that it can be omitted.For example, Char, signed Char, and unsigned char are different types;Int, short, and long are also different types.You can use the function overl
This part of the Main introduction to algorithms involves recursive, heap sorting, and quick sorting.
Exercise 4.1-1Prove that $ T (n) = T (\ lceil n/2 \ rceil) + 1 $ is interpreted as $ O (\ lg n) $.
Q: I guess $ T (n) \ Leq C \ cdot \ lg (n-B) $ (for the reason $-B $, see Introduction to algorithms-4.1 substitution method-some minor issues), use mathematical induction, if it meets $ n/2 $, there are:
$ T
,%LX[Signed] long long [int] 64-2^63 ~ 2^63-1%i64dunsigned long long [int] 0 ~ 2^64-1%i64u,%i64o,%i64x----float +/-3.40282e+038%f,%e,%g----double +/-1.79769e+308%lf,%le,%lg%f,%e,%g--long double + +/-1.79769e+308%lf,%le,%LGA few notes:1. Attention!Each row in the table represents a basic type. The "[]" representation can be omitted.For example: Char, signed char, unsigned char are three distinct types;int, short, and long are also three different types
,%lo,%LX[Signed] long long [int] 64-2^63 ~ 2^63-1%i64dunsigned long long [int] 0 ~ 2^64-1%i64u,%i64o,%i64x----float +/-3.40282e+038%f,%e,%g----double +/-1.79769e+308%lf,%le,%lg%f,%e,%g--long double + +/-1.79769e+308%lf,%le,%LGA few notes:1. Attention!Each row in the table represents a basic type. The "[]" representation can be omitted.For example: Char, signed char, unsigned char are three distinct types;int, short, and long are also three different t
,%lo,%LX[Signed] long long [int] 64-2^63 ~ 2^63-1%i64dunsigned long long [int] 0 ~ 2^64-1%i64u,%i64o,%i64x----float +/-3.40282e+038%f,%e,%g----double +/-1.79769e+308%lf,%le,%lg%f,%e,%g--long double + +/-1.79769e+308%lf,%le,%LGA few notes:1. Attention!Each row in the table represents a basic type. The "[]" representation can be omitted.For example: Char, signed char, unsigned char are three distinct types;int, short, and long are also three different t
~ 2^63-1%i64dunsigned long long [int] 0 ~ 2^64-1%lld,%llx----float +/-3.40282e+038%f,%e,%g----double +/-1.79769e+308%lf,%le,%lg%f,%e,%g--long double + +/-1.79769e+308%lf,%le,%LGA few notes:1. Attention!Each row in the table represents a basic type. The "[]" representation can be omitted.For example: Char, signed char, unsigned char are three distinct types;int, short, and long are also three different types.2. char/signed char/unsigned char type data
1. My husband, do you want the stars? (Women want LG to say, give, and I will give it to you .)
But LG said, I 'd like to ask you something else. diamond ring, small point, I can buy it for you. How can I pick stars ?! Ah...
2. After reading the post posted on the upstairs, I also had a whim and made a call to lg (he is on his way to work, I am at home),
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.