zoukankan      html  css  js  c++  java
  • int float double 最小值与最大值

    #include <iostream>
    #include <limits>
    using   namespace   std;
    
    int  main()
    {
        cout << "bool minvalue " << numeric_limits<bool>::min() << endl;
        cout << "bool maxvalue " << numeric_limits<bool>::max() << endl;
        cout << "char minvalue " << numeric_limits<char>::min() << endl;
        cout << "char maxvalue " << numeric_limits<char>::max() << endl;
        cout << "short minvalue " << numeric_limits<short>::min() << endl;
        cout << "short maxvalue " << numeric_limits<short>::max() << endl;
        cout << "int minvalue " << numeric_limits<int>::min() << endl;
        cout << "int maxvalue " << numeric_limits<int>::max() << endl;
        cout << "long minvalue " << numeric_limits<long>::min() << endl;
        cout << "long maxvalue " << numeric_limits<long>::max() << endl;
        cout << "float minvalue " << numeric_limits<float>::min() << endl;
        cout << "float maxvalue " << numeric_limits<float>::max() << endl;
        cout << "double minvalue " << numeric_limits<double>::min() << endl;
        cout << "double maxvalue " << numeric_limits<double>::max() << endl;
        cout << "long double minvalue " << numeric_limits<long double>::min() << endl;
        cout << "long double maxvalue " << numeric_limits<long double>::max() << endl;
        return 0;
    }
    

  • 相关阅读:
    WPF基础之内容控件
    WPF基础之路由事件
    WPF基础分享之布局
    JMeter操作手册
    Jmeter安装和配置
    UI自动化--Web Driver小结
    对于自动化测试框架的总结
    UI自动化--selenium webdriver
    postman断言
    接口测试工具---postman的基本使用
  • 原文地址:https://www.cnblogs.com/narjaja/p/10689249.html
Copyright © 2011-2022 走看看