c++11新标准 01 long long 类型

来源:互联网 发布:mac中英文输入法切换 编辑:程序博客网 时间:2024/06/05 12:38

c++11 long long 类型


代码如下~

#include <iostream>#include <limits>  using namespace std;int main(){    cout << "type: \t\t" << "************size**************"<< endl;      cout << "bool: \t\t" << "所占字节数:" << sizeof(long long);      cout << "\t最大值:" << (numeric_limits<long long>::max)();      cout << "\t\t最小值:" << (numeric_limits<long long>::min)() << endl;      // << "\t最大值:" << (numeric_limits<string>::max)() << "\t最小值:" << (numeric_limits<string>::min)() << endl;      cout << "type: \t\t" << "************size**************"<< endl;      return 0;  } 



PS:limits是表示我们数据类型范围的一个类,大家可以进入这个类中看看

1 0
原创粉丝点击