`
java-mans
  • 浏览: 11434534 次
文章分类
社区版块
存档分类
最新评论

C++中的基本类型

 
阅读更多
Fundamental Types in C++:


The fundamental types are the basic building blocks from which more complex typea are constructed.

They include the following:


bool: Boolean value, either true or false
char: character
short: short integer
int: integer
long: long integer
float: single-precision floating-point number
double: double-precision floating-point number


There is also an enumeration, or enum, type to represent a set of discrete values. Together, enumberations
and the types bool, char, and int are called integral types.


Finally, there is a special type void, which explicitly indicates the absence of any type information.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics