zoukankan      html  css  js  c++  java
  • C++各数据类型的最值

     1 #include <bits/stdc++.h>
     2 using namespace std;
     3 int main() {
     4     cout << "int的最大最小值" << endl; 
     5     cout << INT_MAX << endl; 
     6     cout << INT_MIN << endl; 
     7     cout << "long的最大最小值" << endl; 
     8     cout << LONG_MAX << endl; 
     9     cout << LONG_MIN << endl; 
    10     cout << "long long的最大最小值" << endl; 
    11     cout << LONG_LONG_MAX << endl; 
    12     cout << LONG_LONG_MIN << endl; 
    13     cout << "unsiged long long的最大最小值" << endl; 
    14     cout << ULLONG_MAX << endl; 
    15     //unsigned long long 最小值为0 
    16     cout << "float的最大最小值" << endl; 
    17     cout << FLT_MAX << endl; 
    18     cout << FLT_MIN << endl; 
    19     cout << "double的最大最小值" << endl; 
    20     cout << DBL_MAX << endl; 
    21     cout << DBL_MIN << endl; 
    22     return 0;
    23 }

  • 相关阅读:
    测光
    闪光灯
    快门
    光圈
    白加黑减
    曝光补偿
    取景雷区
    着眼点
    Web中的无状态含义
    图计算模型[转]
  • 原文地址:https://www.cnblogs.com/fx1998/p/12868696.html
Copyright © 2011-2022 走看看