integral 在c++中是什么类型?..如题.

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 04:40:10

integral 在c++中是什么类型?..如题.
integral 在c++中是什么类型?
..如题.

integral 在c++中是什么类型?..如题.
楼上说的 int 是错的.
The arithmetic types represent integers,characters,and boolean values are collectively refered to as the integral types.
There are three integer types:short,int,and long.
There are two character types:char and wchar_t.
There is one boolean type:bool.
Hence,there are 6 integral types:
short,int,long,char,wchar_t,and bool.
看的懂吗?
一共有6种integral types,分别是 short,int,long,char,wchar_t,bool.
在 VC++ 6.0,上面6种integral types的变量互相赋值没有任何错误和警告.