In "C ++ primer", the numeric type of C ++ is divided into two types, respectively integer and Floating type. The integer type includes integer, character, and distributed type. Of course, both the integer and numeric types can be split, such as int, long, short, unsigned, and signed. Floating Point types include float, double, and long double. In C ++ for object-oriented programming, published by the Tsinghua University, the cloth model is removed, that is, in addition to the cloth model, it is mainly divided into two types: Integer type and floating point type. In fact, this question mainly depends on how to understand it, because only true and false are the value of the cloth type, that is, there are only two types of sentiment: 0 and non-negative. If we have to say true or false, then the generic type cannot be counted as an integer. If it is set to 0 or not, it can be regarded as an integer.
In addition, although there are all numeric-type word numbers, in fact, the ISOC ++ standard does not clearly define the number and value of each digital type, it just sets the number of characters between them in order:
(Signed/unsigned) char <= (unsigned) short <= (unsigned) int <= (unsigned) long.
This is mainly because different hosts are not used. Different machines have different implementations for this, so the word numbers will be different.