博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
shrt c++_SHRT_MIN常数,带C ++示例
阅读量:2529 次
发布时间:2019-05-11

本文共 1562 字,大约阅读时间需要 5 分钟。

shrt c++

C ++ SHRT_MIN宏常量 (C++ SHRT_MIN macro constant)

SHRT_MIN constant is a macro constant which is defied in climits header, it is used to get the minimum value of a short int object, it returns the minimum value that a short int object can store, which is -32768.

SHRT_MIN常量是在climits标头中定义的宏常量,用于获取short int对象的最小值,它返回short int对象可以存储的最小值,即-32768

Note:

注意:

  • The actual value depends on the compiler architecture or library implementation.

    实际值取决于编译器体系结构或库实现。

  • We can also use <limits.h> header file instead of <climits> header as SHRT_MIN constant is defined in both of the libraries.

    我们也可以使用<limits.h>头文件而不是<climits>头文件,因为在两个库中都定义了SHRT_MIN常量

Syntax of SHRT_MIN constant:

SHRT_MIN常量的语法:

SHRT_MIN

Example:

例:

Constant call:    cout << SHRT_MIN;    Output:    -32768

C ++代码演示带有climits标头的SHRT_MIN常量示例 (C++ code to demonstrate example of SHRT_MIN constant with climits header)

// C++ code to demonstrate example of // SHRT_MIN constant with climits header#include
#include
using namespace std;int main(){
//prinitng the value of SHRT_MIN cout<<"SHRT_MIN: "<
<

Output

输出量

SHRT_MIN: -32768

C ++代码演示带有limits.h头文件的SHRT_MIN常量的示例 (C++ code to demonstrate example of SHRT_MIN constant with limits.h header file)

// C++ code to demonstrate example of // SHRT_MIN constant with 
header file#include
#include
using namespace std;int main(){
//prinitng the value of SHRT_MIN cout<<"SHRT_MIN: "<
<

Output

输出量

SHRT_MIN: -32768

翻译自:

shrt c++

转载地址:http://czozd.baihongyu.com/

你可能感兴趣的文章
ultraedit激活
查看>>
总结(6)--- python基础知识点小结(细全)
查看>>
亿级曝光品牌视频的幕后设定
查看>>
ARPA
查看>>
JSP开发模式
查看>>
我的Android进阶之旅------&gt;Android嵌入图像InsetDrawable的使用方法
查看>>
Detours信息泄漏漏洞
查看>>
win32使用拖放文件
查看>>
Android 动态显示和隐藏软键盘
查看>>
raid5什么意思?怎样做raid5?raid5 几块硬盘?
查看>>
【转】how can i build fast
查看>>
null?对象?异常?到底应该如何返回错误信息
查看>>
django登录验证码操作
查看>>
(简单)华为Nova青春 WAS-AL00的USB调试模式在哪里开启的流程
查看>>
图论知识,博客
查看>>
[原创]一篇无关技术的小日记(仅作暂存)
查看>>
20145303刘俊谦 Exp7 网络欺诈技术防范
查看>>
原生和jQuery的ajax用法
查看>>
iOS开发播放文本
查看>>
20145202马超《java》实验5
查看>>